How To Use df Command To List Filesystem Mount Points

April 23, 2011 | By
| Reply More

Storage device is one of the main component of the computer system. To install operating system or to save data permanently, storage device is required. In Linux, you can use some of the tools like crusader, KDiskFree, Gnome Disk utility and df (disk free) to monitor the disk usage. It displays the amount of total and free disk space available on the mounted file systems. This command is related to file system and by using this command, we can find used blocks, inodes and free space available in the file system.

Syntax: -df [options] [name]

Example: 1

[root@mailserver ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 9448100 3549668 5418492 40% /

-h is used to get the output in human readable (shows in terms of MB and GB) form.

Example: 2

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.6G 1.9G 5.4G 26% /
tmpfs 478M 0 478M 0% /dev/shm

-i is used to get free available inodes, total inodes and % used inodes on the mounted file system.

[root@localhost ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 2050272 83601 1966671 5% /
tmpfs 122313 1 122312 1% /dev/shm

-T shows fileystem type of mounted file system.

Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext3 7936256 1920936 5605668 26% /
tmpfs tmpfs 489252 0 489252 0% /dev/shm

Example: 3

List nfs mount points using df command.

#df -HP -t nfs


Tagged With :

Free Linux Ebook to Download

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.