Tag Archives: redirect

Redirect and append STDOUT and STDERR to a log file

Redirecting STDOUT to a file is easy: command > foo.log Redirecting STDERR to a file is also easy: command 2> foo.log Redirecting both STDOUT and STDERR to a file is also fairly straightforward: command &> foo.log But what if we … Continue reading

Posted in Linux | Tagged , , , , , , | Leave a comment