I have several log files that contain a few bytes which are not displayable characters (due to binary signatures on the requests).
Every time I open them with less I get asked:
$ less /var/log/file.log
"/var/log/file.log" may be a binary file. See it anyway?
How do I make less skip this step with a command line option or configuration?
Best Answer
Use
-f
option:You can add this option to
LESS
environment variable in .bashrc to runless
by default with-f
.