Home > Centos, Linux, Tips n' Tricks > How to find Largest File

How to find Largest File

I was using Sarg with Squid, yesterday i noticed squid was not working. When i investigated, found /var was full. I was trying to find a file that consumed the space.

Here is the tip, it will  sort out the files from top to bottom.

find /var -mount -ls -xdev | /usr/bin/sort -nr +6 | more

Categories: Centos, Linux, Tips n' Tricks Tags:
  1. adam gill
    August 13th, 2009 at 22:49 | #1

    Nice work, Really

  2. August 24th, 2009 at 22:19 | #2

    carry on Dude, you’re are the only geek of linux in PK,
    Good job :razz: :>

  3. August 25th, 2009 at 12:05 | #3

    @silentplayers
    wahh.. thank you, how did you get in here ? Masood from lhr?

  4. August 26th, 2009 at 16:43 | #4

    Cheetah! i am not masood. :lol:

  5. riz
    October 12th, 2009 at 03:56 | #5

    nice work alam