snippets used to research low disk space

Simple snippets useful for troubleshooting low disk space.

Using 'du' against a directory and single filesystem and sorting i
du -hxc --max-depth=1 / | sort -n

Find command that displays the 10 largest files within the defined directory
find /tmp -mount -type f -ls | sort -k 7 -r -n | head -10

No comments:

Post a Comment