When we use find command in Unix or Linux the search returns sometimes many denied permission messages from the folders where our user is not allowed to access.
This is very easy to avoid. Just use the following command:
find . -name your_file_name 2>/dev/null
With this we are redirecting the errors (2) to /dev/null.
/dev/null discards all data written on it.
No hay comentarios:
Publicar un comentario