2
votes
2answers
365 views

In linux, how do you get a total size of a folder for files that are 1MB and up

Hi im doing some cleaning up on my server and i want to know how would i get the total size of a folder of files that are 1mb and up and also 1mb and below. I got as far as: ls -lh | grep 'M ' But ...
0
votes
1answer
103 views

Email file and folder list with size?

I am trying to get a list of all files and folders with there sizes (upto 1st level, i.e. file and folder names with there sizes in current directory) emailed to me via an python script. I got the ...
1
vote
3answers
2k views

How do I quickly calculate the size of a directory?

I want to calculate the size of my home directory, which has a lot of sub directories. It takes about 40 seconds to run du. Is there a quicker way? $ time du -sh 5.0G . real 0m39.676s user ...
22
votes
4answers
25k views

How do I get the size of a Linux or Mac OS X directory from the command-line?

What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?