redirecting of stdout and stderr to one file

Oct 08, 2013 13:52

$ [whatever] > outputfile.txt 2>&1
or
$ [whatever] &> outputfile.txt

get stderr only:
$ [whatever] 2> errlog.txt

linux

Previous post Next post
Up