1843944 Members
2261 Online
110226 Solutions
New Discussion

find file

 
SOLVED
Go to solution
Alberto Baraldi
Occasional Contributor

find file

Hi all
How can I do for find all the files of my / logical volume grater than 1.000.000 bytes whit the command find?

Thanks.

Alberto
5 REPLIES 5
V.Tamilvanan
Honored Contributor

Re: find file

Hi,

#find / -xdev -size +2000 -print
Sanjay Kumar Suri
Honored Contributor

Re: find file

find /file_system -size +1000000c

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
john korterman
Honored Contributor
Solution

Re: find file

Hi,

# find -type f -size + 1000000c

or more detailed
# find -type f -size + 1000000c -exec ls -l {} \;

regards,
John K.
it would be nice if you always got a second chance
V.Tamilvanan
Honored Contributor

Re: find file

Hi,

Sorry. the below one will work only for files which are larger than 1024000 bytes.

#find / -xdev -size +2000 -a -type f -print
V.Tamilvanan
Honored Contributor

Re: find file

Hi Baraldi,

The -xdev option of find won't cross the filesystem.

A position-independent term that causes find
to avoid crossing any file system mount
points that exist below starting points
enumerated in pathname_list. The mount point
itself is visited, but entries below the
mount point are not. Always true.