df question

df question
# 1
03-05-2012
df question

Hi,
Can anyone please explain a little about df command. I have following question:

Following example is showing % used as 4 where as total free blocks are 15.46 out of 16.00 MB blocks.

Last edited by joeyg; 03-05-2012 at 05:48 PM.. Reason: Please wrap examples and scripts in CodeTags
 itsabhi9 View Public Profile for itsabhi9 Find all posts by itsabhi9
# 2
03-05-2012
What's the question?
 Corona688 View Public Profile for Corona688 Visit Corona688's homepage! Find all posts by Corona688
# 3
03-05-2012

Are you questioning because you suspect it should only show 3%?

0.54 used of 16 total, equals 3.375%
This User Gave Thanks to joeyg For This Post:
 joeyg View Public Profile for joeyg Find all posts by joeyg
# 4
03-05-2012
This is the first time I'm working on AIX.
Please explain the calculation of %used in this example out of tatal available blocks?
 itsabhi9 View Public Profile for itsabhi9 Find all posts by itsabhi9
# 5
03-05-2012
'round up'
 Corona688 View Public Profile for Corona688 Visit Corona688's homepage! Find all posts by Corona688
# 6
03-05-2012
Amazing that you have exactly the same figures as in the man df page.
Help - AIX 6.1 Information Center

I think we need to see figures from a live system for df -k (if the numbers don't overflow) and df -m and to know what the mount command was for this filesystem. Chances are that it will be correct and that the man df example is wrong.

Mathematically the percentage used should be:
However I have seen differences like this caused by error accumulation in Real Arithmetic. i.e. The program was not written to use sufficient precision.

Not on AIX but I have seen a version of "df" which used 1000 as the divisor not 1024 which was scary.

Footnote: Usually this question is because the free space percentage figure is too low! Usually because the account issuing the "df" was not root. This is one of the very few times where I have seen the free space percentage too high.

Last edited by methyl; 03-05-2012 at 07:51 PM.. Reason: footnote
 methyl View Public Profile for methyl Find all posts by methyl

Test Your Knowledge in Computers #836
Difficulty: Medium
SOAP is a data serialization specification.
True or False?

question

How to add 3 moniters to a pc set up?

2. Shell Programming and Scripting

Hey my friend was asking me if i knew a way to cout how many different words in a file. I told him no not off hand, but i was thinking about it, and i started to wonder also. I imagine this is probably pretty simple im just missing something, I keep confusing my self with how you would compair and...

Question

hallo, ik heb hier een vraagje. hoeveel gebruikers kunnen er op 1 unix systeem. hopelijk antwoorden golle nu want ik moet da vinde voor school en die leerkracht zaagt. :p groetjes eu wacht wa was mijne nick ah ja vraagje groetjes vraagje ik kan geen engels dus antwoord liever in het...

mv question

Hello if I like to move file from defined directories system to new directory that not contained any directories system structure . But I like to create the same file system structure as source directory for example : I have 2 directories: foo1 and foo2 foo1 have directories and foo2 have...

vi question

Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE. Does someone know how to get around this? Thanks!

Question?

what is WDFP and WE STATION?

Yet Another Question

Now that I have getch() to work, I have yet another problem. BTW, thank you for answering these questions, I do ask a lot, only because I am eager to know, what is a board used for anyways :) Ok, he's the problem... #include iostream.h #include conio.h int main() { char movement; ...