To hide the output of any command usually the stdout and stderr are redirected to /dev/null.

command > /dev/null 2>&1


  1. command > /dev/null: redirects the output of command(stdout) to /dev/null
  2. 2>&1: redirects stderr to stdout, so errors (if any) also goes to /dev/null


&>/dev/null: redirects both stdout and stderr to /dev/null. one can use it as an alternate of /dev/null 2>&1