You are not logged in.
Pages: 1
Does anyone know how to use Less in the console with colour? For example, piping ls through less loses all the directory/symlink colour codes etc. I use view now for reading files, but for non-files view doesn't work. If you cannot use less with console colour, are there any similar programs with this enabled?
Thanks
Offline
Not exactly an answer to your question, but to help differentiating the file types when using <code>ls</code> when you don't have color, you could do this:
ls -F | less
Which will insert symbols after the pathname to let you know what they are...
'/' = directory
'*' = executable
'@' = symbolic link
'=' = socket
'%' = whiteout
'|' = FIFO
Offline
I don't know of any pages that work that way - but 'most' will colorize manpages.
Offline
Thanks guys.
Offline
Hi all,
this alias works for me:
alias ls='ls --color=always'
Offline
Pages: 1