LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2007, 09:40 PM   #1
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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!
 
Old 01-25-2007, 10:08 PM   #2
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Original Poster
Rep: Reputation: 34
Amazing how lazy some people are (talking about myself).

Code:
:n
will skip to the next page.

Just FYI for anyone else.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 11:49 AM
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 02:08 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration