Dave's Brain

Browse - computer tips - system wide find stuck in proc or dev

Date: 2009jun11
OS: Linux

Q.  My big find is stuck in /proc -- what can I do?

A.  Generally you can't grep in /proc /sys and /dev so if you want to search the entire filesystem do this:

	find / -path /proc -prune -o /sys -prune -o -path /dev -prune -o -type f -exec grep SOMETHING {} \;

This searches everywhere but /proc /sys and /dev
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: