I'm trying to understand how Linux handles file extensions. Since Linux generally doesn't use extensions to determine a file's type, I created an empty file with `touch banana.jpg`, added plain text to it with `nano`, and confirmed the contents with `cat`.
However, running `less banana.jpg` produced a message like "No identify available" and suggested installing ImageMagick instead of showing the text. Why is `less` doing this, and how can I make it display the file contents normally?
1 Answer
This is usually caused by `lesspipe`, a helper script that some distributions configure `less` to use. It can inspect filenames and extensions, then invoke other tools for compressed files, images, archives, and metadata. The `LESSOPEN` environment variable tells `less` which preprocessor to run, so the behavior depends on your distribution and its configuration.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures