Thursday, August 26, 2010

unix commands

Want to know the size of a directory or directories?

du -sh [directory/directories]

"du" = disk usage, -sh = "sum the disk usage of the directories and make it human readable"

ex: du -sh /var/www

(though I probably wouldn't recommend running the command due to the size of the "www" directory)

No comments: