LinHES Forums
http://forums.linhes.org/

Finding Large Files
http://forums.linhes.org/viewtopic.php?f=5&t=14360
Page 1 of 1

Author:  ed3120 [ Mon Feb 26, 2007 9:13 am ]
Post subject:  Finding Large Files

What is a good command for finding large files on your drive? I know how to use:

Code:
du -xsh *


to recursively find a large file through nested folders, but I'm looking for a command that'll list all files on my drive that are larger than a certain size.[/code]

Author:  alien [ Mon Feb 26, 2007 9:25 am ]
Post subject: 

Take a look at "man find".

Ex. "find / -size +1G" finds all files greater than 1G.

Cheers,

Allen

Author:  ed3120 [ Fri Mar 02, 2007 8:35 am ]
Post subject: 

Thanks, that's what I needed.

Author:  tjc [ Fri Mar 02, 2007 8:38 pm ]
Post subject: 

I also recommend:
Code:
du -k | sort -n

to get a list of directories from the current location down, ordered by increasing size.

Sometimes it's not a few big files but rather a lot of smaller ones that are eating your space...

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/