Professional Documents
Culture Documents
How To Check Linux Filesystem Disk Space Utilization
How To Check Linux Filesystem Disk Space Utilization
Menu
Menu
Ravi Saive Last Updated: August 11, 2021 Linux Commands 54 Comments
On the internet, you will find plenty of tools for checking disk space utilization in Linux. However, Linux has
a strong built-in utility called ‘df‘.
The ‘df‘ command stands for “disk filesystem“, it is used to get a full summary of available and used disk
space usage of the file system on the Linux system.
Using ‘ -h ‘ parameter with (df -h) will show the file system disk space statistics in “human-readable”
format, means it gives the details in bytes, megabytes, and gigabyte.
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 1/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
This article explains a way to get the full information of Linux disk space usage with the help of the ‘df‘
command with their practical examples. So, you could better understand the usage of the df command in
Linux.
[root@tecmint ~]# df
NoBroker
VISIT SITE
Homes Without Brokerage
The same as above, but it also displays information of dummy file systems along with all the file system
disk usage and their memory utilization.
[root@tecmint ~]# df -a
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 2/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
The df command provides an option to display sizes in Human Readable formats by using '-h' (prints
the results in human-readable format (e.g., 1K 2M 3G)).
[root@tecmint ~]# df -h
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 3/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
[root@tecmint ~]# df -k
[root@tecmint ~]# df -m
[root@tecmint ~]# df -h
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 4/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Using ‘ -i ‘ switch will display the information of a number of used inodes and their percentage for the
file system.
[root@tecmint ~]# df -i
[ You might also like: How to Increase Disk Inode Number in Linux ]
[root@tecmint ~]# df -T
/dev/cciss/c0d0p2 78361192 23190072 51126356 32% /
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 5/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Show information about the file system on which each FILE resides,
Mandatory arguments to long options are mandatory for short options too.
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-k like --block-size=1K
SIZE may be (or maybe an integer optionally followed by) one of the following:
Read Also :
If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or
doubts? do ask for help in the comments section.
TecMint is the fastest growing and most trusted community site for any kind of
Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to
search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a
token of appreciation.
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 7/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Related Posts
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 8/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 9/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 10/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Benjamin
June 2, 2021 at 6:18 am
Reply
Ravi Saive
June 2, 2021 at 12:34 pm
@Benjamin,
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 11/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
euti
October 8, 2020 at 3:01 pm
To display information of all file system statistics in GB (Gigabyte) use the option as ‘df -g‘ ;)
Reply
Akshay K
September 6, 2020 at 9:27 pm
Hello all,
But when i reversed the flags and did ‘df -ht xfs‘, I got the proper output.
Reply
Emily.Fannie
April 1, 2020 at 2:04 pm
Paolo
May 25, 2019 at 1:49 pm
Reply
Ravi Saive
May 27, 2019 at 12:32 pm
@Paolo,
The df -hT will display the size of all partitions table, there you can easily trace how much space
utilized and left on each partition.
Reply
tradevizer
July 8, 2020 at 8:40 pm
Reply
xing
May 8, 2019 at 8:58 am
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 13/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Reply
James Marsh
November 29, 2018 at 5:09 am
Achtually, if you want to be super correct df -h shows usage in Gibibytes, df -H shows Gigabytes.
The difference gets noticeable at high amounts and people are more used to thinking in Giga
rather than Gibi no matter how much computer techs would prefer it to be the other way around.
Reply
Kiran
June 26, 2019 at 12:27 am
You have put the details other way around -h uses 1024 where as -H uses powers of 1000. -H
numbers would be significantly higher than -h.
Reply
James Marsh
September 16, 2019 at 8:34 pm
I don’t see I left any details on which one is bigger in my original comment. People do get
confused when you tell them they have fewer GiB (1024) than they expected since they are
used to the smaller GB (1000).
Reply
Fred
December 22, 2020 at 12:40 pm
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 14/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
And here in lies the problem with this nonsense called gibibytes etc.
I am a computer tech and no other computer techs I know (under the age of 30), give this
ridiculous notion of a megabyte being 1000×1000 any time of day.
Sorry but a megabyte WILL ALWAYS be 1024 kilobytes (1024 bytes) x 1024 kilobytes no
matter how hard the push is to rename computing standards to fall in line with other
standards of measurements i.e kilogram, kilometre etc
It’s a real pity that in Linux you can’t show file sizes in traditional/correct megabytes,
gigabytes etc
I see Gibibyte and I think Gigabyte. THAT and mass confusion is all this nonsense has
achieved.
Reply
Fred
December 22, 2020 at 12:42 pm
← Older Comments
Name *
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 15/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting.
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 16/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
Shop Now
Plans
Ab Health ki suraksha sirf Rs. 257 prati
Quotes!
InsuranceDekho
Get Quote
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 17/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 18/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
bmon – A Powerful Network Bandwidth Monitoring and Debugging Tool for Linux
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 19/20
10/9/21, 5:08 AM How to Check Linux Filesystem Disk Space Utilization
How to Encrypt and Decrypt Files and Directories Using Tar and OpenSSL
Donate to TecMint
Contact Us
Advertise on TecMint
Linux Services
Copyright Policy
Privacy Policy
Career
Sponsored Post
Tecmint: Linux Howtos, Tutorials & Guides © 2021. All Rights Reserved.
The material in this site cannot be republished either online or offline, without our permission.
https://www.tecmint.com/how-to-check-disk-space-in-linux/ 20/20