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

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


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

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


Web design by yours truely - me, myself, and I   |   |