What does Linux less -ofilename or –log-file=filename option do?

Less -ofilename or –log-file=filename option causes less to copy its input to the named file as it is being viewed.  This applies only when the input file is a pipe, not an ordinary file.  If the file already exists, less will ask for confirmation before overwriting it.

Leave a Reply