How to remove "Permission denied" with find

Add

2>&1 | grep -v "Permission denied"

after the normal find. Eg.

find / -name domain.xml 2>&1 | grep -v "Permission denied"

No comments:

Post a Comment