lkml.org 
[lkml]   [1998]   [Jul]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From(Larry McVoy)
SubjectStupid df tricks
DateMon, 06 Jul 1998 22:33:25 -0700
I was watching over the shoulder of an unnamed kernel hacker this
afternoon and was surprised to see he didn't know about "df -h" or
"du -sh".  Go try 'em, I think you'll like

[lm@linux kernel]$ df -h .
Filesystem            Size  Used  Avail  Capacity Mounted on
/dev/sdc              8.2G  3.5G   4.5G     44%   /home/ftp/pub

better than

[lm@linux kernel]$ df .
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sdc             8572561 3719507  4675240     44%   /home/ftp/pub

For the more pedantic out there, there is also

[lm@linux kernel]$ df -m .
Filesystem         MB-blocks    Used Available Capacity Mounted on
/dev/sdc                8371    3632     4565     44%   /home/ftp/pub

Cheers.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2008