Bootstrap FreeKB - Linux Commands - find command - exclude "permission denied"
Linux Commands - find command - exclude "permission denied"

Updated:   |  Linux Commands articles

If you are not familiar with the find command, check out our Getting Started article.

The find command may produce many results with the text "Permission Denied."

~]# find / -iname jar
find: '/run/user/1000/gvfs': Permission denied
. . . 

 

Appending 2>/dev/null will exclude the results that contain Permission Denied from the output.

~]# find / -iname jar 2>/dev/null
/opt/bin/jar

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 5de321 in the box below so that we can be sure you are a human.