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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -