I would like to keep color in less command after using "make 2>&1" to compile some program. There are similar topics with "grep" and "ls" commands but solutions do not work with this command.
For instance,
make 2>&1 | less -R
does not work.
Thanks for your help.
less -Rrather thanless -r. I had to look up what|&does. (https://stackoverflow.com/questions/35384999/what-does-mean-in-bash) – mc0e Sep 03 '23 at 04:47