View Full Version : Checking size of file/folders

16th October 2007, 12:12 PM

I the following two command give the names of the folder of files on the desktop which have their size in MB or GB, am I right?

[root@localhost Desktop]# du -h |grep M

[root@localhost Desktop]# du -h |grep G

What do I need to use as a command to get the name of the files/folders within a particular range in terms of size ie MB or GB? If I want to know the names of the files/folders on the desktop that are larger than 5 MB but less then 10 MB in size? Thanks..

16th October 2007, 01:33 PM
You can use the 'find' command with the -size option.