Operating System - HP-UX
1834936 Members
2247 Online
110071 Solutions
New Discussion

Restrict find command to a single filesystem

 
SOLVED
Go to solution
spex
Honored Contributor

Restrict find command to a single filesystem

Is there a way to restrict the filesystems that 'find' traverses? Specifically, I want to do something like:

find / -size +5000000c -type f -exec ll {} \;

but not cross out of /dev/vg00/lvol3:

df -Pk |grep '/$'
/dev/vg00/lvol3 137523 48304 89219 36% /

Thank you.
3 REPLIES 3
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Restrict find command to a single filesystem

Hi,

# find / -xdev -size +5000000c -type f -exec ll {} \;

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: Restrict find command to a single filesystem

Hi :

Add '-xdev'.

# find / -xdev ...

Regards!

...JRF...
spex
Honored Contributor

Re: Restrict find command to a single filesystem

Thanks.