2
votes
2answers
360 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 ...
1
vote
2answers
263 views

Not able to output to file in the Windows command line

In the following code, I need to take the path and size of folder and subfolders into a file. But when the loop runs for the second time, path and size are not getting printed to the file. size.txt ...
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?