Ever need to find out what’s using the most space on your Linux box? There are a couple commands that will help make things easier…
To find out how much space you have use:
df -h .
Which will give you output like so…
Filesystem Size Used Avail Use% Mounted on
/dev/sda 20G 15G 4.2G 79% /
To list out the directories using the most space, use this handy command…
sudo du /usr/local | sort -n
… where /usr/local is the directory you want info for (you can also just start from root: /)
Please remember to subscribe to the newsletter to stay up to date!You or someone you know looking to buy or sell?
Disclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...