domingo, 15 de noviembre de 2015

Linux / Unix tip: How to skip denied permission using find command

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