Page 1 of 1

How to get the size of a folder from the command line?

New postPosted: Mon Feb 10, 2014 2:47 am
by Cat
How do I get the size a folder from the command line?

Than you 8-)

Re: How to get the size of a folder from the command line?

New postPosted: Mon Feb 10, 2014 4:51 am
by Patton
Code: [Select all] [Expand/Collapse] [Download] (Untitled)
du -hs /path/to/your/folder


The option '-h' stands for human readable format.
The option '-s' displays a summary of the directory size. It is the simplest way to know the total size of the current directory.