Bash /dev/null
/dev/null is a special file that throws away everything written to it.
Redirect output or errors to it when you only care whether a command worked, not what it printed.
Hide an error message
ls missing.txt 2> /dev/null
echo $?
2
Check without printing
grep "error" app.log > /dev/null && echo "Found errors"
Found errors