FreeKB - Linux FIND command - Exclude Permission Denied
Linux 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 0f545 in the box below so that we can be sure you are a human.


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