Home Linux How to find out how much space a directory takes up using Linux?
 
 
 

How to find out how much space a directory takes up using Linux?

PDF Print E-mail

Question: How to find out how much space a directory takes up using Linux?

 

Answer:

In the command line type the following command within the desired directory

du -c
This will give you the usage/size of all the folders within that particular directory.

du =  estimate file space usage
-c = total

To get the size/usage in a Human readable format eg. Megabytes/Gigabites append the -h option to the command above. 

Example below:

du -ch

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 
 
Banner