Thursday, February 28, 2008

How to check folder size in linux - Linux Newbie


Question: What command do I need to execute to know the size of a folder, including its subdirectory?

Ans: To calculate the total folder size of folder "bin"

$ du -sh bin/
280K bin/

-s, --summarize (display only a total for each argument)
-h, --human-readable ( print sizes in human readable format (e.g., 1K 234M 2G))

No comments:

© Jadu Saikia www.UNIXCL.com