Ssh command to file the bigger file on the server

Discussion in 'Site & Server Administration' started by ASTRAPI, Feb 28, 2011.

  1. #1
    Hello

    What command i must use to find using ssh the bigger file on my server?

    Thank you
     
    ASTRAPI, Feb 28, 2011 IP
  2. slayerduck

    slayerduck Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' 
    Code (markup):
    20000k = 20MB
    change the number to what you find big.
     
    slayerduck, Feb 28, 2011 IP