linux - Redirect all output to file -



linux - Redirect all output to file -

i know in linux, redirect output screen file, can either utilize > or tee. however, i'm not sure why part of output still output screen , not written file.

is there way redirect output file?

that part written stderr, utilize 2> redirect it. example:

foo > stdout.txt 2> stderr.txt

or if want in same file:

foo > allout.txt 2>&1

note: works in (ba)sh, check shell proper syntax

linux bash io-redirection

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -