ls -l gives me color coded output. Folders are blue, executables green, etc. These colors are gone when filtering thorough | more. Anyway to achieve both paged output and colors?

link|improve this question

60% accept rate
Can you give us a detailed explanation? – V413HAV Oct 5 '11 at 11:21
feedback

1 Answer

up vote 3 down vote accepted

Try with less command with repaint(-R) option:

ls --color=always -l | less -R
link|improve this answer
That works, and actually more as pager also works. – eldering Oct 5 '11 at 11:29
1  
Shouldn't it be -R (only change is uppercase R)? See here for why... – Breakthrough Oct 5 '11 at 11:37
@Breakthrough: +1. i'll update it. – Prince John Wesley Oct 5 '11 at 11:39
1  
Actually it also works with more with the --color=always, so that was the key for me! – Nilzor Oct 7 '11 at 8:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.