I need to get rid off "access denied" messages which fills my find output. I've read man find (maybe not too carefully, hit me) and cannot find anything like
-s/--silent or -q/--quiet command line key.
|
I need to get rid off "access denied" messages which fills my find output. I've read man find (maybe not too carefully, hit me) and cannot find anything like -s/--silent or -q/--quiet command line key. | |||
|
feedback
|
|
The easiest way would be to redirect If you want a cleaner solution, you can try something like
which tells | |||
|
feedback
|
|
find ... 2>/dev/null (Note however, that this will redirect all errors, not just "access denied") | |||
|
feedback
|
This will get rid of all Permission denied errors. Similarly you may edit the code above depending on the situation | |||
|
feedback
|