cheat:ncdu
# To save results to <file>:
ncdu -o <file>
# To read from <file>:
ncdu -f <file>
# To save results to a compressed file:
ncdu -o- | gzip > <file>
# To read from a compressed file:
zcat <file> | ncdu -f-
tldr:ncdu
# ncdu
# Disk usage analyzer with an ncurses interface.
# More information: <https://manned.org/ncdu>.
# Analyze the current working directory:
ncdu
# Colorize output:
ncdu --color dark|off
# Analyze a given directory:
ncdu path/to/directory
# Save results to a file:
ncdu -o path/to/file
# Exclude files that match a pattern, argument can be given multiple times to add more patterns:
ncdu --exclude '*.txt'
$
cheat.sh