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
Nice :-)

> GNOME's Disk Usage Analyzer does the same thing more graphically and visually

Do you know about `ncdu'?
Follow

@c47 Nope, but I can't assume that's installed. du and sort are everywhere.

@liw
True. Usually it isn't istalled and `du' and `sort' are :-)
ncdu stands for ncurses disk usage, so still usable in terminal, but a little bit graphical. It provides browsing functionality, which is sometimes quite handy :-)
Sign in to participate in the conversation
toot.liw.fi

Lars and friends