techlists at comcast.net
2008-Jan-10 16:21 UTC
[CentOS] "find" switch to find files of a certain size?
Is there a switch in "find" (or some other command besides find) that'll let you find files larger than a specified size? My file system is 88% full and I'd like to see where the biggest space hoggers are. PG
Marko A. Jennings
2008-Jan-10 16:28 UTC
[CentOS] "find" switch to find files of a certain size?
On Thu, January 10, 2008 11:21 am, techlists at comcast.net wrote:> > Is there a switch in "find" (or some other command besides find) that'll > let you find files larger than a specified size?-size Read the man page.
techlists at comcast.net
2008-Jan-10 16:29 UTC
[CentOS] "find" switch to find files of a certain size?
I just answered my own question; ignore original post. -------------- Original message ---------------------- From: techlists at comcast.net> > Is there a switch in "find" (or some other command besides find) that'll let you > find files larger than a specified size? > > My file system is 88% full and I'd like to see where the biggest space hoggers > are. > > PG > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Fajar Priyanto
2008-Jan-13 03:16 UTC
[CentOS] "find" switch to find files of a certain size?
On Thursday 10 January 2008 23:21:55 techlists at comcast.net wrote:> Is there a switch in "find" (or some other command besides find) that'll > let you find files larger than a specified size? > > My file system is 88% full and I'd like to see where the biggest space > hoggers are.I also found this on the net: du /path/to/anywhere/* -hs | grep [0-9]M | sort -rn | head -20 It will sort the space usage of each directories. HTH, -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 10:15:48 up 1 day, 14:14, 2.6.22-14-generic GNU/Linux Let's use OpenOffice. http://www.openoffice.org The real challenge of teaching is getting your students motivated to learn. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080113/7255ca77/attachment-0002.sig>
Bill Campbell
2008-Jan-13 03:33 UTC
[CentOS] "find" switch to find files of a certain size?
On Sun, Jan 13, 2008, Fajar Priyanto wrote:>On Thursday 10 January 2008 23:21:55 techlists at comcast.net wrote: >> Is there a switch in "find" (or some other command besides find) that'll >> let you find files larger than a specified size? >> >> My file system is 88% full and I'd like to see where the biggest space >> hoggers are. > >I also found this on the net: >du /path/to/anywhere/* -hs | grep [0-9]M | sort -rn | head -20 >I usually use something like: find /mountpoint -xdev -size +10000 > someplacenotfull Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Our Foreign dealings are an Open Book, generally a Check Book. Will Rogers
Andreas Kuntzagk
2008-Jan-14 07:21 UTC
[CentOS] "find" switch to find files of a certain size?
Am Sonntag, den 13.01.2008, 10:16 +0700 schrieb Fajar Priyanto:> On Thursday 10 January 2008 23:21:55 techlists at comcast.net wrote: > > Is there a switch in "find" (or some other command besides find) that'll > > let you find files larger than a specified size? > > > > My file system is 88% full and I'd like to see where the biggest space > > hoggers are. > > I also found this on the net: > du /path/to/anywhere/* -hs | grep [0-9]M | sort -rn | head -20This only shows you usage for directories less than 1GB. (and more than 1MB) To see all: du /path/to/anywhere/* -s | sort -rn | head -20