Monday
May182009
Linux Command line Tip: Directory Sizes
Monday, May 18, 2009 at 6:20PM
Some basic BASH shell commands for gathering directory size information.
- du -h - Shows all directories sizes including sub directories
- du -sh * - Show all the 1 level sub directories size
- du -sh - Calculate current directory size you are in
- du -sh /etc - Size of specific directory
- df -h - Show overall mounted volume disk space usage
These work in OSX's terminal as well.
Reader Comments