×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Massimo Zappino
Added: Aug 22, 2012 11:25 AM
Modified: Aug 11, 2017 2:35 PM
Views: 36
  1. # add one of these lines at the end of command to generate no output.
  2. command.sh >/dev/null 2>&1
  3. # or
  4. command.sh &> /dev/null
  5.  
  6. # print only errors on output
  7. command.sh 1> /dev/null