Unix – Navigate Multiple Files with less Command

lessunix

I just found out I can use less with multiple files. less status line tells me
(END) – Next: file2.txt

But how do I navigate previous/next from less?

Best Answer

We read in the manpage:

       :n     Examine  the next file (from the list of files given in the com‐
              mand line).  If a number N is specified, the N-th next  file  is
              examined.
       :p     Examine the previous file in the command line list.  If a number
              N is specified, the N-th previous file is examined.
Related Question