Home » Questions » Computers [ Ask a new question ]

How do you display how much space is taken up by all the contents held recursively in one directory using a Linux terminal?

How do you display how much space is taken up by all the contents held recursively in one directory using a Linux terminal?

I use Ubuntu 9.04 and I would like to know how to display how much space is taken up by all the contents held recursively in one directory using a Linux terminal?

Asked by: Guest | Views: 89
Total answers/comments: 1
Guest [Entry]

"You can use the following:

du -sh <your-dir>

Where:

s means summarize this directory only
h means human-readable units (MB, GB etc)"