Have any command to see what is consuming disk space on ubuntu 14?
My Ubuntu server has left only 70MB of disk space
thank's
Have any command to see what is consuming disk space on ubuntu 14?
My Ubuntu server has left only 70MB of disk space
thank's
I am pretty sure this article can help you https://unix.stackexchange.com/questions/3961/how-to-understand-whats-taking-up-space/3964#3964
For instance:
du /home | sort -rn
(will search all files/directories under /home and sort them by largest to smallest.
du -h /home | sort -rh
(same but will show it in MB/KB/etc) - Note this requires coreutils 7.5 or newer (sort --version
to check)
You can replace /home
with any directory of your choice.
A quick df -h
can show you the volumes and basic usage.
Then I like to drill down by doing
du -s * | awk '{ if( $1 > 10000 ) { print; } }'
That will return a list of the directories over 10 MB in size. You can keep running the command from there as you drill down. I'd start in the /var, /home, /root, and /usr directories.