Results 1 to 2 of 2
I am new to Linux as a sis admin and i know that the i am using "Amazon Linux AMI release 2012.09" but i want to know how big are ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-06-2013 #1
- Join Date
- Jan 2009
How to tell how big each folder is?
"Amazon Linux AMI release 2012.09"
but i want to know how big are each directory in my root. So far i have
du -a ./ | sort -n -r | head -n 100
3817508 ./ 458228 ./moises/ 201668 ./moises/vendor 201536 ./moises/vendor/cache
and i dont know if that is kb or Gb
also is there a way to remove sub directorys?
- 09-06-2013 #2
If you only want the first two lines of your output, use head -2 as your final filter.
The units are bytes by default. If you want something more practical, use du -h. This will use suitable units depending on the size of the file and show which ones have been used."I'm just a little old lady; don't try to dazzle me with jargon!"