How much storage space am I using on a server?

Use the commandDisk_usage_(Boabab)

du –shc *

…to  show how much space you’re using with a total at the end.

For example:

...
 3.3M Matlab
 75M Prophex
 4.0K test.txt...
 7G total
df –h 

…shows total space available.

Divide the first result by the result shown for /home in the second listing and that’s the percentage you’re using.

For example:

[db400@emmy ~]$ df -h
 Filesystem Size Used Avail Use% Mounted on
 /dev/mapper/vg_raid1-lv_root
 103G 28G 70G 29% /
 tmpfs 32G 0 32G 0% /dev/shm
 /dev/sda1 477M 101M 351M 23% /boot
 /dev/mapper/vg_raid5-lv_home
 825G 236G 548G 31% /home

The percentage used here is 7G/825G which is < 1%

 

Leave a Reply

Your email address will not be published.