linux pipe to null code example
Example 1: bash send to dev null
command > /dev/null 2>&1
Example 2: bash redirect output to null
command > /dev/null
#Example
echo "Hello World"
Hello World
echo "Hello World" > /dev/null
#Doesn't show anything
command > /dev/null 2>&1
command > /dev/null
#Example
echo "Hello World"
Hello World
echo "Hello World" > /dev/null
#Doesn't show anything