When reading a file with `less` or `more`, how can I get the content in colors?

Опубликовано: 05 Август 2026
на канале: The Computer Oracle
0

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Forest of Spells Looping

--

Chapters
00:00 Question
00:21 Accepted answer (Score 257)
02:58 Answer 2 (Score 576)
03:28 Answer 3 (Score 164)
04:18 Answer 4 (Score 46)
04:44 Thank you

--

Full question
https://superuser.com/questions/11784...

Accepted answer links:
[ref.]: https://superuser.com/a/117842/34893
http://pygments.org/download/
[makers of Pygments]: http://www.pocoo.org/
[show directory listings]: https://superuser.com/a/583929/98217

Answer 3 links:
[Less and Grep: Getting colored results when using a pipe from grep to less]: https://superuser.com/questions/36022...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...

--

Tags
#linux #colors #less

#avk47