Difference between df -k and df -b

Difference between df -k and df -b

Post by Kurt » Thu, 07 Oct 2004 12:33:27



Hi all,
I am curious about the difference in free space reported by df when
using the -k versus the -b options. The -b option shows more space
available then -k. The man pages are not much help except the hint
that -k shows space available for "unpriviledged users".  Man pages
say both options report in kbytes. The os level is 5.6.  As an
example:

$ df -k /dbac00
Filesystem
kbytes used avail capacity Mounted on
/dev/vx/dsk/oracledg/dbac00
1946504 1660935 90919 95% /dbac00

$ df -b /dbac00
Filesystem avail
/dev/vx/dsk/oracledg/dbac00 285569

In the above the -k shows 90919, the -b shows 285569. Any insights
into the reason for the different reported values would be greatly
appreciated.

Thank you,
Kurt

 
 
 

Difference between df -k and df -b

Post by Dave Uhrin » Thu, 07 Oct 2004 12:45:34



> Hi all,
> I am curious about the difference in free space reported by df when
> using the -k versus the -b options. The -b option shows more space
> available then -k. The man pages are not much help except the hint
> that -k shows space available for "unpriviledged users".  Man pages
> say both options report in kbytes. The os level is 5.6.  As an
> example:

See tunefs(1M), the -m minfree argument.

 
 
 

Difference between df -k and df -b

Post by shoe » Thu, 07 Oct 2004 21:26:20



> Hi all,
> I am curious about the difference in free space reported by df when
> using the -k versus the -b options. The -b option shows more space
> available then -k. The man pages are not much help except the hint
> that -k shows space available for "unpriviledged users".  Man pages
> say both options report in kbytes. The os level is 5.6.  As an
> example:

> $ df -k /dbac00
> Filesystem
> kbytes used avail capacity Mounted on
> /dev/vx/dsk/oracledg/dbac00
> 1946504 1660935 90919 95% /dbac00

> $ df -b /dbac00
> Filesystem avail
> /dev/vx/dsk/oracledg/dbac00 285569

> In the above the -k shows 90919, the -b shows 285569. Any insights
> into the reason for the different reported values would be greatly
> appreciated.

> Thank you,
> Kurt

      -b    Prints the total number of kilobytes free.

      -k    Prints the allocation in kbytes. The  output  consists
            of  one  line  of  information for each specified file
            system. This  information  includes  the  file  system
            name,  the  total  space allocated in the file system,
            the amount of space allocated to existing  files,  the
            total  amount  of  space available for the creation of
            new files by UNPRIVILEGED users, and the percentage of
            normally  available  space that is currently allocated
            to all files on the file system. This option overrides
            the -b, -e, -n, and -t options.

 
 
 

1. df -v versus df -vf

Why would a df -v report usage greater than df -vf would?

# df -v
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    466828      4150   100%

# df -vf
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    408284     62694    87%

--


2. How do I do subdomains?

3. df difference from du

4. Daily Telegraph (UK) article on David Hewson

5. Differences between df and du -s

6. ezppp only works for root

7. du and df diskspace differences

8. Mouse on X window has smaller border.

9. Disk space differences (fdisk + df)

10. Difference between df and du command

11. Difference In Partition Table versus df -k

12. df, du and ls differences

13. What's the difference between du and df commands