to redirect both stdout & stderr
> /dev/null 2>&1
E.g.:
host$ rm nooo >/dev/null 2>&1
host$ echo rm nooo >/dev/null 2>&1
host$
iitrc:~/www/ai$ ls no no: No such file or directory
iitrc:~/www/ai$ ls no >& /dev/null
'>&' works fine for bash and csh (and 4dos), but not sh:
iitrc:~/www/ai$ sh $ ls no >& /dev/null /dev/null: bad number
documented on: Thu 02-18-99 16:47:08