Linux speichern Programmkonsolenausgabe in Datei

SomeCommand 2>&1 | tee SomeFile.txt
Cute Cockroach