ls can distinct file types by coloring filenames differently.
ls often output a long list of files (including directories), so I pipe the stdout output to
less doesn't preserve the colors. How can we make it show colors, or some alternative ways?
Just saw the linked list, but piping to
less -R or
less -r doesn't work. My OS is Ubuntu 12.04.
less is Version 444: 09 Jun 2011.