From 16059040252b507ddae198a0a71015b121341282 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Sat, 30 Nov 2024 22:56:20 +0100 Subject: [PATCH] docs: update readme --- README.md | 2 ++ gdu.1.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 36f847c0b..09aec9de1 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ Flags: --si Show sizes with decimal SI prefixes (kB, MB, GB) instead of binary prefixes (KiB, MiB, GiB) --storage-path string Path to persistent key-value storage directory (default "/tmp/badger") -s, --summarize Show only a total in non-interactive mode + -t, --top int Show only top X largest files in non-interactive mode --use-storage Use persistent key-value storage for analysis data (experimental) -v, --version Print version --write-config Write current configuration to file (default is $HOME/.gdu.yaml) @@ -104,6 +105,7 @@ Basic list of actions in interactive mode (show help modal for more): gdu -n / # only print stats, do not start interactive mode gdu -np / # do not show progress, useful when using its output in a script gdu -nps /some/dir # show only total usage for given dir + gdu -nt 10 / # show top 10 largest files gdu / > file # write stats to file, do not start interactive mode gdu -o- / | gzip -c >report.json.gz # write all info to JSON file for later analysis diff --git a/gdu.1.md b/gdu.1.md index 7a876708a..cf9ecce1c 100644 --- a/gdu.1.md +++ b/gdu.1.md @@ -54,6 +54,8 @@ non-interactive mode **-s**, **\--summarize**\[=false\] Show only a total in non-interactive mode +**-t**, **\--top**\[=0\] Show only top X largest files in non-interactive mode + **-d**, **\--show-disks**\[=false\] Show all mounted disks **-a**, **\--show-apparent-size**\[=false\] Show apparent size