Linux Hard drive Space
Last Updated by Code Sport. Filed under linuxHard Drive Space The df command will show you overall disk usage.…
The df
command will show you overall disk usage. To find out how much space is used in a directory, use du -s
. For example, to view the disk usage of your server’s partitions:
$ df -h
To list the size of a specific directory:
$ du -sh /home/
List the size of all the sub-directory sizes under /home
:
$ du -sh /home/*