LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-11-2009, 01:07 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

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, 01:19 AM   #2
Ajit Gunge
Member
 
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.
 
  


Reply


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




All times are GMT -5. The time now is 09:20 PM.

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