Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-10-2004, 12:12 AM   #1
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-10-2004, 12:14 AM   #2
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-10-2004, 12:15 AM   #3
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-10-2004 at 12:16 AM.
Old 11-10-2004, 12:22 AM   #4
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
hehe, now we can get into a more vs less war
Old 11-10-2004, 12:39 AM   #5
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.


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 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 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 AM.

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