Electronics Programming
Linux Posts, Programming Posts, Atmega Posts and others.
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
2 comments:
Vikas Sharma
February 17, 2009 at 4:02 PM
du -shc *
Reply
Delete
Replies
Reply
Vikas Sharma
February 18, 2009 at 4:07 PM
[For current folder]
du -shc `ls`
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
du -shc *
ReplyDelete[For current folder]
ReplyDeletedu -shc `ls`