May 16, 2002 #1 arobart IS-IT--Management Dec 20, 2000 121 US Is there a command I can use to find files larger than a certain size? Example: I am in the zoom directory and I want to list any files in zoom that are larger than >1GB Any way to do that? Thanks in advance
Is there a command I can use to find files larger than a certain size? Example: I am in the zoom directory and I want to list any files in zoom that are larger than >1GB Any way to do that? Thanks in advance
May 16, 2002 #2 DebiJo Technical User Apr 30, 2002 363 US Try the find command: find ./ -size +1024 -ls Good luck, Debi Upvote 0 Downvote
May 16, 2002 #3 bjverzal MIS Apr 26, 2001 964 US None that I know of. You could.. ls -1qs|sort -nr|more and look for files > 1048576. Bill. Upvote 0 Downvote
May 16, 2002 #4 bjverzal MIS Apr 26, 2001 964 US Actually, the format of the find would be... find ./ -size +1048576 -ls Upvote 0 Downvote
May 16, 2002 Thread starter #5 arobart IS-IT--Management Dec 20, 2000 121 US Thanks ! The find command works great! Upvote 0 Downvote
May 16, 2002 #6 bjverzal MIS Apr 26, 2001 964 US I learned something today too - the "+" option of size. BV Upvote 0 Downvote
May 16, 2002 #7 Einstein47 Programmer Nov 29, 2001 737 US This is sort of related. You can get a listing of all the files in a directory sorted by size increasing like this: Code: ls -l | sort -n +4 I find this helpful to know which files are the biggest in a directory. The largest files will be the last to display. Hope this helps, Einstein47 (Love is like PI - natural, irrational, endless, and very important.) Upvote 0 Downvote
This is sort of related. You can get a listing of all the files in a directory sorted by size increasing like this: Code: ls -l | sort -n +4 I find this helpful to know which files are the biggest in a directory. The largest files will be the last to display. Hope this helps, Einstein47 (Love is like PI - natural, irrational, endless, and very important.)