Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-11-2009, 12:07 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
'df -h' VS 'df -H'

Friends ,

I got two different results uding "df -h" and "df -H" . Would you plz tell me which one is correct ?

[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 27G 2.3G 24G 9% /
tmpfs 248M 0 248M 0% /dev/shm

[root@server ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 29G 2.5G 25G 9% /
tmpfs 260M 0 260M 0% /dev/shm
[root@server ~]#
Old 05-11-2009, 12:19 AM   #2
Ajit Gunge
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Rashed if you go to the man pages of df you will find your answer

-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)

-H, --si
likewise, but use powers of 1000 not 1024.

Both are correct but their representations are different.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration