- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- du and df
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 01:22 PM
07-08-2002 01:22 PM
du and df
if i do
df /usr
/ (/dev/vg00/lvol3 ): 320892 blocks 190647 i-nodes
du -sk /usr
417098 /usr
please tell me how the du and df differ and
conversion of blocks,kbs,mbs,gg's.
Thanks
subhashni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 01:41 PM
07-08-2002 01:41 PM
Re: du and df
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 02:01 PM
07-08-2002 02:01 PM
Re: du and df
# bdf -i /usr
and take a look at the "avail" column (which is in KBytes) you'll notice that this is equals to 320892/2 ie 160446. So another way of looking at the "df /usr" output is you got 160446 KBytes left. Also notice "ifree" column matches the free inodes number in the "df /usr" output.
Now the "du -sk /usr" tells you the disk usage of /usr (ie 417098 KBytes). Obviously different from the df/bdf output (from the "used" column).
This is because du reports only the diskspace used by text and executable files. It does not report the space used by fileheaders and underlying disk structures. Typically you would see the output from df/bdf of the "used" column slighty more than the "du -sk" output and can be up to a few MBs difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 02:11 PM
07-08-2002 02:11 PM
Re: du and df
512 bytes-1 block
1024 bytes - 1 kb
1024 kb - 1 mb
1024 mb - 1gg
i would like to know the cylider and track conversions please.
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 08:39 PM
07-08-2002 08:39 PM
Re: du and df
And if you are using a disk array, there is no such concept (at the computer side) of track and cylinder--the array translates the required address (a block number within the logical volume) to some location on a set of disks. And in the case of HP's Autoraid, this location may be moved automatically as the free space changes inside the array.
Bill Hassell, sysadmin