Wednesday, July 4, 2012

Find large files in the system -Linux

Find large files in the system -Linux:

Navigate to ‘/’ then issue the following command

sudo  du -h  | egrep '([0-9]+(\.)*[0-9]*)G(.*)'

    ·         Command will be in effect from the path you execute . ‘sudo’ is optional
    ·         'G' represent gigabyte  . change it depends on scale you want .