Linux/less: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with "== Always Show Color == less -R With ls: <ref>https://superuser.com/questions/117841/when-reading-a-file-with-less-or-more-how-can-i-get-the-content-in-colors</ref> ls --color=always -l | less -R With tree: <ref>https://superuser.com/questions/117841/when-reading-a-file-with-less-or-more-how-can-i-get-the-content-in-colors</ref> tree -a -C | less -R")
 
No edit summary
 
Line 8: Line 8:
With tree: <ref>https://superuser.com/questions/117841/when-reading-a-file-with-less-or-more-how-can-i-get-the-content-in-colors</ref>
With tree: <ref>https://superuser.com/questions/117841/when-reading-a-file-with-less-or-more-how-can-i-get-the-content-in-colors</ref>
  tree -a -C | less -R
  tree -a -C | less -R
Alias: (.bashrc)
alias less="less -R"
alias tree="tree -a -C"

Latest revision as of 16:47, 16 September 2026

Always Show Color

less -R

With ls: [1]

ls --color=always -l | less -R

With tree: [2]

tree -a -C | less -R


Alias: (.bashrc)

alias less="less -R"
alias tree="tree -a -C"