Command output redirect to file and terminal [duplicate] January 19, 2023 by Tarik Yes, if you redirect the output, it won’t appear on the console. Use tee. ls 2>&1 | tee /tmp/ls.txt