wikiti
6/14/2018 - 1:10 PM

Redirect stderr to stdout

Take stderr output and redirect it to stdout.

# Redirect stdout to /dev/null, and then redirect stderr to stdout
command >/dev/null 2>&1

# You can pipe it to another command
command >/dev/null 2>&1 | grep 'your word'