LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2004, 11:12 PM   #1
rphemby
LQ Newbie
 
Registered: Apr 2003
Location: Stockdale, Tx
Distribution: None yet
Posts: 2

Rep: Reputation: 0
Ls command


I am new to linux. After reading the man page and my Linux command summary book I still don't understand how to see a directory listing one page at a time. Which switch do I use to only see one page listing of a directory?
 
Old 11-09-2004, 11:14 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
ls | less is what I think you want to do (your post isn't totally clear). In the shell a vertical bar | pipes the result of one command to another. In the case, the output of ls is piped to less which displays it one page at a time (you may scroll back and forth through the output).
 
Old 11-09-2004, 11:15 PM   #3
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
there is no switch to see it one page at a time, however you can "pipe" it to the more command like this

ls | more


type this into terminal

-By the way your post was perfectly clear to me

Last edited by jax8; 11-09-2004 at 11:16 PM.
 
Old 11-09-2004, 11:22 PM   #4
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
hehe, now we can get into a more vs less war
 
Old 11-09-2004, 11:39 PM   #5
rphemby
LQ Newbie
 
Registered: Apr 2003
Location: Stockdale, Tx
Distribution: None yet
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guys, think I got it now.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:07 PM.

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