command error redirection

Simon Andrews simon.andrews at
Fri Oct 10 11:24:03 UTC 2008

ANOOP wrote:
> On Fri, Oct 10, 2008 at 4:03 PM, Gopal Ghosh <gopal016 at> wrote:
>> Dear All,
>> How top redirect errors of a command to a file
> # <command> > errorFile

That would redirect stdout (normal output) rather than the errors.  To 
redirect standard error you'd usually do:

# <command> 2> errorfile

..assuming you're using bash for your shell.


More information about the users mailing list