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 .

1 comment:

  1. Its better this way
    eg :
    sudo find / -type f -size +1024M -exec ls -lh {} \; | awk '{ print $0 }'

    ReplyDelete