LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2003, 05:01 PM   #1
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
ls one screen at a time


I'd like to display the contents of my /usr/lib directory.

But there are a lot of files, and they scroll quickly past as the command
"ls" executes.

I recall there is some way to display one screen at a time, but I don't remember how.

I appreciate any feedback. How do I display the contents of a directory by "ls" and viewing one screen at a time in my terminal?

Thanks.
 
Old 11-06-2003, 05:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
ls | more
 
Old 11-06-2003, 05:09 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You may also want to try piping ls in to "less" since less is more

That way you can scroll up and down.
 
Old 11-06-2003, 05:09 PM   #4
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
That will work. Thanks for the reply.
 
Old 11-06-2003, 05:11 PM   #5
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
I like the "ls -l | less" method too. Then I can use "page down". Thanks for your reply.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen locks all the time now boxerboy Ubuntu 2 09-21-2005 05:13 AM
lock screen for limited time marcosm Linux - Software 2 06-10-2005 01:20 PM
printout on one screen at a time in c++ freeindy Programming 1 03-09-2005 12:25 PM
First time user needs help with bypassing a start up screen. aNi-DiFrAnCo Linux - Newbie 27 07-23-2004 08:41 PM
Telling ls to display one screen at a time rl5 Linux - Newbie 3 03-23-2004 08:29 PM


All times are GMT -5. The time now is 11:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration