Favourite command today:

sudo du -hxd1 | sort -h

Find out where disk space is being used under the current working directory, without crossing mount points, sorted by size.

GNOME's Disk Usage Analyzer does the same thing more graphically and visually, but sometimes a command line is preferable.


@liw OHH, I did not knkow about -d1, I have been doing du -shx * for years, which does cross mountpoints if they are mounted in CWD

Sign in to participate in the conversation

We are a Mastodon instance for LGBT+ and alies!