Command: du (mneumonic: disk usage)
How can one get the disk usage of a directory, but didn’t want the directories which are mountpoints of other filesystems…
The disk usage calculation can be limited to the actual mounted partition with the -x flag.
| tivoli@tivdzl01:~> df -m | |||||
| Filesystem | 1M-blocks | Used | Available | Use% | Mounted on |
| /dev/dg_system/lv_root | 20564 | 11362 | 8158 | 59% | / |
| /dev/dasda1 | 86 | 10 | 72 | 12% | /boot |
| grasshopper:/iso/tivoli | 70556 | 52084 | 16322 | 77% | /tmp/tivoli |
## Notice the size differences below
tivoli@tivdzl01:~> du -smx /
11325 /
tivoli@tivdzl01:~> du -sm /
63478 /
[ NOTE : The size differences are due to df getting the filesystem info based on 512byte blocks ]

