Op 19-10-17 om 13:12 schreef Joerg Schilling:
> No, the first field usually is the background storage, it may be the filesytem
> name in some cases.

Whatever it technically may be, the POSIX spec calls it a file system
name, so I'm using that term to be consistent with it.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/df.html#tag_20_33_10

> You need to look at the 2nd line and you may use the '%' sign to synchronize
> fields and you may even do this:
> 
> /usr/xpg4/bin/df -P /etc/passwd /etc/hosts
> Dateisystem           512-Blöcke      Belegt   Verfügbar Kapazität Eingehängt 
> auf
> /dev/dsk/c1t0d0s3       24203960    23115442      846480    97%    /
> /dev/dsk/c1t0d0s3       24203960    23115442      846480    97%    /
> 
> and just compare the last two lines.

What if this is done while something else is writing to a file? As far
as I can tell, there's nothing to say the number of free blocks can't
change between printing the first and second lines.

As for the '%' sign method, see Geoff's message and my reply to it.

- M.

Reply via email to