Come stampare stdout su file

comando | tee file.txt