ls -l --color=auto | tee output.log
Without pipe/tee it's colored. How can I make it so that it stays colored while using tee (can be colored only on the screen, I don't care about colors in logs).
|
feedback
|
|
Use the ls option The man page says
| |||||||||
feedback
|