Wednesday, April 15, 2009

How to check free disk space in linux

The Command you should use is

df -h

-h is the flag which makes it more readable


- Mihir Patel
=========================================

Few Examples

[mihir@mp tests]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              65G  5.0G   57G   9% /
/dev/sda1              99M   14M   81M  14% /boot
none                  2.0G     0  2.0G   0% /dev/shm
hirouxx:/work         145G   12G  126G   9% /work


[mihir@mp tests]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2             67740692   5224076  59075496   9% /
/dev/sda1               101086     13377     82490  14% /boot
none                   2018500         0   2018500   0% /dev/shm
hirouxx:/work        151689392  12434096 131549904   9% /work

No comments: