The following will redirect both standard output and standard error to /dev/null. Assume realfile is a file that exists and notfile does not exist (a command that would put some information on standard out and some on standard error.)
ls realfile notfile > /dev/null 2>&1