FreeKB - Linux FIND command - Exclude Permission Denied
Linux FIND command - Exclude Permission Denied

Home > Search


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

 



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 02c2c in the box below so that we can be sure you are a human.




Comments