When I try to find files on my system, I type:
find / -name "somename" -print
the problem is that when I do this, it not only finds all the filenames that I want, but it also searches through some directories which I do not have access to. So I get thousands of error messages like:
find: cannot chdir to </etc/security> : Permission denied
find: cannot chdir to </etc/ppp> : Permission denied
find: cannot chdir to </opt/lost+found> : Permission denied
and somewhere among these error messages, I can find my files but it takes too long...
Is there a way to only find what I need?
I tried piping to a 'grep 'somename' but that only moves the found files to the end of the error messages.