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: 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 | # ]