System Management

A non-root user runs find / -name "*.conf" and the matches are buried among many "Permission denied" messages. The user wants the matching paths to remain on the terminal and the error messages to disappear. Which command does this?

Show the answer

Correct answerB. find / -name "*.conf" 2> /dev/null

File descriptor 2 is stderr, so 2> /dev/null discards only the error messages and leaves stdout on the terminal. Redirecting stdout to /dev/null does the opposite and hides the matches while the errors remain.