# This will hide all error messages find / -name foo 2>/dev/null # Hide only the "Permission denied" error find / -name foo 2>&1 | grep -v "Permission denied"