Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Human-readable sizes all over the place' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Human-readable sizes all over the place
Authored by: cubal on Aug 04, '04 04:49:53PM
du -sh "dirname" (s for summary, h for human-readable) will give you what you're after.

[ Reply to This | # ]
Human-readable sizes all over the place
Authored by: frankxiv on Aug 06, '04 09:19:13AM

Thanks! du -sh "directory name" did indeed give me the total size of a directory.

Also, for those interested du -ah gives you the size of every file inside of the directory (and in the directories inside of that directory). In other words, it will recursively list all files inside of a directory (including other directories) along with the size of each. That is exactly the command I was looking for.

Thanks everyone!

Frank



[ Reply to This | # ]