Root, Qubits & Qualia
Linux how‑tos, quantum insights, and explorations into the nature of mind
Pages
(Move to ...)
Home
▼
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
‹
›
Home
View web version