Saturday, May 12, 2012

Determine Directory Size In Linux with 'du'

'du' is an acronym for Disk Usage. So, if you want to find the size of a directory in Linux/Unix:
du <directory_name>
A more human-readable format can be generated using -h switch which outputs size with M,G and similar postfix.
du -h <directory_name>

0 comments:

Post a Comment