Linux CLI - Pipes and Redirection
Which command discards both standard output and standard error using
/dev/null?/dev/null?>, standard error with 2>. To redirect both, use 2>&1 to merge stderr into stdout./dev/nullcommand > /dev/null 2>&1 sends stdout to /dev/null and then redirects stderr to the same place.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions