How To Use df Command To List Filesystem Mount Points

In linux df command is used to display the amount of total and free disk space available on the mounted file systems. Using df options you can find used blocks, inodes and free space available in the file system. In Linux, there are lots of others tools like ncdu, crusader, KDiskFree, Gnome Disk utility to monitor the disk usage. In this article, we show you a nice option of df command to display mount point using specific filesystem type.

1) Default and human readable

Default and human readable format shows used space, available free space, percentage of space used and mount path.

# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 9448100 3549668 5418492 40% /
# 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

2) Display Filesystem Type

df command have an option -T shows fileystem type of mounted file system. Below ouput shows /dev/sda7  and /dev/sda8 on ext4 filesystem.

# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda7 ext4 10079084 6468168 3098916 68% /
/dev/sda8 ext4 5039616 2948128 1835488 62% /home

3) Display Mount point on specific filesystem

You can use -t followed by filesytem type (say ext3, ext4, nfs) to display respective mount points. For examples below df command display all nfs mount points.

# df -HP -t nfs

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.