My most used alias

August 11, 2020

I often deal with full hard drives over SSH. And surprisingly, it's tricky to get a good number for disk usage, without installing any third party packages.

But here it is, my most used alias:

alias used='du -sch .[!.]* * 2>/dev/null | sort -h'

Put it in the ~/.bashrc or similar profile file.

Example output

Example output of the alias

P.s. The title of the article was not originally intended to be a pun.