5
1
when I list directories with a lot of files with ls -la or tree -L 3 I get many screens of output. To read one screen after another I add | more or | less, but the problem with this is that the coloring is lost.
Is there a way to make the console pause after each screen full of information but keep the coloring?
Thanks.
2If you have
--color=auto
thenls
will display color if there is no pipe. If there is a pipe, it won't display the color. Having--color=always
gives pipes color. – Nitrodist – 2010-08-02T19:33:04.1601From
ls --help
: "Using the --color option without the optional WHEN argument is equivalent to using --color=always." – Paused until further notice. – 2010-08-02T19:44:30.287I have to make sure coloring is enabled AND that "less" interprets the color escape chars.
Thanks, this is the result I was looking for. – vobject – 2010-08-02T19:45:44.530