tags:

views:

598

answers:

4

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?

+4  A: 

This question is better suited for superuser.com. Anyway, 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.
Stephan202
Thanks for reply! I will have a closer look at superuser.com for other Less related issues/tips
Jesper Rønn-Jensen
+1  A: 

Type :n and :p.

jtbandes
Thanks a lot for input
Jesper Rønn-Jensen
A: 

Found out from :h (help window) that I can use :p (for previous) and :n (for next)

Jesper Rønn-Jensen
A: 

type :n(colon n) & :p (colon p)

daavy