commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Prints the size of Directory in human readable format like KB MB or GB. If you want to see size each files and directories inside the directory use -a option as shown in second output and if you want a total sum then add -c option :)
There are 6 alternatives - vote for the best!
the command will calculate the size of hidden files
the command will not include hidden files
If you can do better, submit your command here.
You must be signed in to comment.