💻 Tech
In bash, /dev/null
is a special file that discards all data written to it. 2>&1
redirects the standard error to the standard output. This is useful when you want to discard the output of a command.
command > /dev/null 2>&1
In bash, /dev/null
is a special file that discards all data written to it. 2>&1
redirects the standard error to the standard output. This is useful when you want to discard the output of a command.
command > /dev/null 2>&1