Pages
Home
Online Store
Sunday, April 13, 2014
Redirect STDOUT and STDERR to STDOUT and also to a file
command 2>&1 | tee -a filename.txt
eg
ls 2>&1 | tee -a directory_list.txt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment