I often try to find files with following syntax:
find . -name "filetofind"
However it usually results as many rows or error reporting (Permission denied) about folders where permission is denied. Is there any other way to avoid this spam than using sudo or advanced grepping from error-output?
Best Answer
Try
This will redirect
stderr
output stream, which is used to report all errors, including "Access denied" one, to null device.