Results 1 to 3 of 3

Thread: Checking size of file/folders

  1. #1

    Checking size of file/folders

    Hi,

    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..

  2. #2
    find ~/Desktop -maxdepth 1 -size +5M -size -10M
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  3. #3
    Quote Originally Posted by Kernel_Killer View Post
    find ~/Desktop -maxdepth 1 -size +5M -size -10M
    Thank you...........

Similar Threads

  1. How to sync phone book - Moto RAZR v3
    By Compunuts in forum Linux - General Topics
    Replies: 35
    Last Post: 08-28-2007, 02:58 PM
  2. gpp and cpp yet more simple problomes
    By JuggaloAnt in forum Linux - General Topics
    Replies: 11
    Last Post: 07-01-2004, 04:17 PM
  3. no modem in Redhat Linux 8??
    By in forum Linux - General Topics
    Replies: 172
    Last Post: 09-14-2003, 04:20 PM
  4. Help with Modem/Weird Request...
    By McBane in forum Suse
    Replies: 22
    Last Post: 12-31-2002, 01:46 AM
  5. Replies: 10
    Last Post: 12-07-2002, 08:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •