LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Using the command "less" (https://www.linuxquestions.org/questions/linux-general-1/using-the-command-less-522860/)

student04 01-25-2007 09:40 PM

Using the command "less"
 
Quick question for someone who might know --

I want to use 'less' to browse through files, one by one, but cannot figure out what button combination to press to get to the next one.

Example:
Code:

bash$ ls -l
-rw------- 1 alex alex 3.7K 2007-01-24 17:38 ChoreCreater.java
-rw------- 1 alex alex 1.2K 2007-01-24 17:38 Chore.java
-rw------- 1 alex alex 2.5K 2007-01-24 17:38 ChoreRequest.java
-rw------- 1 alex alex 4.5K 2007-01-24 17:38 ChoreServer.java
-rw------- 1 alex alex 4.0K 2007-01-24 17:38 ClientListener.java
-rw------- 1 alex alex 1.8K 2007-01-24 17:38 CloseMessenger.java
-rw------- 1 alex alex  433 2007-01-24 17:38 Prioritizable.java
-rw------- 1 alex alex 3.5K 2007-01-24 17:38 PriorityQueue.java
-rw------- 1 alex alex 1.4K 2007-01-24 17:38 QueueNode.java
-rw------- 1 alex alex 7.4K 2007-01-24 17:38 WorkerGUI.java
bash$ less *.java

That will invoke less on the first file. Upon opening it tells me:
Code:

ChoreCreater.java (file 1 of 10)
When I hit the end of the file it tells me:
Code:

(END) - Next: Chore.java
How do I navigate to that?

Thanks!

student04 01-25-2007 10:08 PM

Amazing how lazy some people are (talking about myself).

Code:

:n
will skip to the next page.

Just FYI for anyone else.

:)


All times are GMT -5. The time now is 04:56 PM.