ignore errors from bash “find” command

Just want to ignore all the permission denied and find the file?

sudo cd /
sudo find . -name connect-console-sink.properties 2>/dev/null   

The “2>/dev/null” just writes all error messages to the bitbucket/null device

Leave a Comment

Scroll to Top