Showing posts with label disc command. Show all posts
Showing posts with label disc command. Show all posts

Monday, November 19, 2007

Want to check your disk is full in Unix ???

oops! it happened again... unix machine says, disc is full...more precisely

write: journal: No space left on device

No probelm, command df can save our life.

df shows how much free space is available in each mount.

It has a list of options, and the man page says like

a, --all include dummy file systems
-B, --block-size=SIZE use SIZE-byte blocks
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si likewise, but use powers of 1000 not 1024
-i, --inodes list inode information instead of block usage
-k like --block-size=1K
-l, --local limit listing to local file systems
--no-sync do not invoke sync before getting usage info (default)
-P, --portability use the POSIX output format
--sync invoke sync before getting usage info
-t, --type=TYPE limit listing to file systems of type TYPE
-T, --print-type print file system type
-x, --exclude-type=TYPE limit listing to file systems not of type TYPE
--version output version information and exit


But among them, i used df -h. it displays the result in easy to read format. like

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 39G 2.8G 34G 8% /
/dev/hda1 99M 11M 83M 12% /boot
none 254M 0 254M 0% /dev/shm