Search This Blog

Tuesday, January 20, 2009

Size of file and folder (Linux)

Use du utility for this
Size of a folder
$ du -sh dir/
or
$ du -h --max-depth=1 dir/
Size of a file
$ stat filename
$ du -h filename

No comments:

Post a Comment