commit a994d001b20b76e476c3b179c45655e919892811 parent 2b09f4380800b19ac3bf2acdd452973bddb17397 Author: ling0x <ling0x@users.noreply.github.com> Date: Sun, 28 Jun 2026 16:46:46 +0100 commands Diffstat:
| D | 16000 | | | 0 | |
| M | commands/disk.txt | | | 18 | ++++++++++++++++-- |
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/16000 b/16000 Binary files differ. diff --git a/commands/disk.txt b/commands/disk.txt @@ -1,2 +1,17 @@ List the top 10 largest folder by disk usage: -du -h --max-depth=1 | sort -hr | head -11 -\ No newline at end of file + +du -h --max-depth=1 | sort -hr | head -11 + + +List least used apps with disk :usage: + +#!/bin/bash + +printf '%-12s %8s %s\n' "LAST_USED" "SIZE" "DIR" +for d in ~/.config/*/ ~/.config/.[!.]*/; do + [ -e "$d" ] || continue + sz=$(du -sh "$d" 2>/dev/null | cut -f1) + ts=$(find "$d" -type f -printf '%T@\n' 2>/dev/null | sort -n | tail -1) + when=$(date -d "@${ts%.*}" '+%Y-%m-%d' 2>/dev/null) + printf '%-12s %8s %s\n' "$when" "$sz" "$(basename "$d")" +done | sort | head -40