Prevent output to window

hello,
Any suggestion on how to prevent Standard output and Standard Error to window?

typically done with a redirect to /dev/null

for errors, something like:

ls -a 2>/dev/null

would show all files while not displaying file access errors

where would you want standard output to go?
why do something if you want to suppress its output?

Depends on what shell your using (bash, csh, etc) on the syntax of the redirection of the stdout, stderr to /dev/null or a file.

But the man page for the shell or google will help.

>where would you want standard output to go?
>why do something if you want to suppress its output?

because I want the test output to be in a better format and also don't want to change the file.
I think I have an idea what I can try now.