Results 1 to 3 of 3
Hello,
I just googling this, but I need a command (ls or otherwise), that I can search the entire directory tree, starting at / that will list all files greater ...
- 08-18-2008 #1Just Joined!
- Join Date
- Sep 2005
- Posts
- 12
How to search directories for files greater than a certain size
Hello,
I just googling this, but I need a command (ls or otherwise), that I can search the entire directory tree, starting at / that will list all files greater than a certain file size.
Basically, looking through the entire directory structure, looking for any files greater than say, 500Meg in size.
Thanks in advance, Owen
- 08-18-2008 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Code:man find
Code:-size n[cwbkMG] File uses n units of space. The following suffixes can be used: `b' for 512-byte blocks (this is the default if no suffix is used) `c' for bytes `w' for two-byte words `k' for Kilobytes (units of 1024 bytes) `M' for Megabytes (units of 1048576 bytes) `G' for Gigabytes (units of 1073741824 bytes) The size does not count indirect blocks, but it does count blocks in sparse files that are not actually allocated. Bear in mind that the `%k' and `%b' format specifiers of -printf handle sparse files differ‐ ently. The `b' suffix always denotes 512-byte blocks and never 1 Kilobyte blocks, which is different to the behaviour of -ls.
- 08-19-2008 #3Just Joined!
- Join Date
- Sep 2005
- Posts
- 12
Thanks for the info.... this pointed me in the right direction.
Cheers


Reply With Quote