redirect all output to null bash code example
Example 1: bash send to dev null
command > /dev/null 2>&1
Example 2: bash stderr null
command > /dev/null # stderr
command > /dev/null 2>&1 # stdout and stderr
command &> /dev/null # stdout and stderr
Example 3: shell redirect all to /dev/null
command &>/dev/null
Example 4: bash redirect output to null
command > /dev/null
#Example
echo "Hello World"
Hello World
echo "Hello World" > /dev/null
#Doesn't show anything