#Linux Syntyax to redirect error and output messages to /​dev/null

in #linux4 years ago (edited)

$ command > /dev/null 2>&1     $ command &>/dev/null

$ ./script.sh > /dev/null 2>&1     $ ./script.sh &>/dev/null