Redirect standard output and standard error some-command &> logfile; # redirect to logfile some-command &> /dev/null; # don't output anything