RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Sunday, April 7, 2013
BASH IO Redirection
In bash, by default, only stdout gets redirected to a file when you use the ">" operator.
To redirect stderr to a file, use the "2>" operator.
To redirect both, use "&>"
Reference:
http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment