Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Explaining odd entries in 'df' output in Volumes folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Explaining odd entries in 'df' output in Volumes folder
Authored by: kiezpro on Jan 29, '10 07:44:57AM

/bin/df is independent from the working directory, as it shows the usage of all mounted entities, including non-disk mount points like /dev, etc.
/usr/bin/du on the other hand shows the amount of space used by the files and subdirectories in the current directory, if called without a file or directory argument.



[ Reply to This | # ]
Explaining odd entries in 'df' output in Volumes folder
Authored by: robg on Jan 29, '10 08:11:31AM

Doh! My bad; way too little sleep last night, I guess. Hint text has now been corrected.

thanks;
-rob.



[ Reply to This | # ]
Explaining odd entries in 'df' output in Volumes folder
Authored by: jralls on Jan 29, '10 09:26:25AM
More corrections: Since df is reporting all mounts and isn't rooted in pwd (Note that the first entry is for /Volumes/datafiles), looking for /net and /home in /Volumes is of course unsuccessful. Try instead ls / and you'll find both mount points.

[ Reply to This | # ]
Explaining odd entries in 'df' output in Volumes folder
Authored by: everkleer80 on Jan 29, '10 09:18:12AM
Wow, I never knew about du. As far as I'm conserned, that command is a hint in itself! I've looked for something exactly like du -s before.

[ Reply to This | # ]
Explaining odd entries in 'df' output in Volumes folder
Authored by: Hal Itosis on Jan 29, '10 09:20:59AM
@kiezpro:
/bin/df is independent from the working directory, as it shows the usage of all mounted entities, including non-disk mount points like /dev, etc. /usr/bin/du on the other hand shows the amount of space used by the files and subdirectories in the current directory, if called without a file or directory argument.
While it's true that df without any folder arg lists all mounted filesystems, we can feed it an argument to have its output report on just the filesystem associated with that folder...

localhost:~ halito$ df -h .
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s10   16Gi   12Gi  3.4Gi    79%    /

localhost:~ halito$ cd /Volumes/Utility
localhost:Utility halito$ df -h .
Filesystem                                Size   Used  Avail Capacity  Mounted on
afp_004Ifb1LRRx6001Eic06SdO0-2.2d000005   15Gi  9.6Gi  5.4Gi    65%    /Volumes/Utility

localhost:Utility halito$ df -h /Volumes/*Music*
Filesystem                                Size   Used  Avail Capacity  Mounted on
/dev/disk0s12                             40Gi   39Gi  776Mi    99%    /Volumes/al_Music
afp_004Ifb1LRRx6001Eic06SdO0-3.2d000006   64Gi   41Gi   22Gi    65%    /Volumes/MusicStorage
-HI-

[ Reply to This | # ]