Linux Zapisz wyjście konsoli programu na pliku

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