LinuxQuestions.org
Visit Jeremy's Blog.
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 10-11-2004, 08:47 AM   #1
paintcheck200
Member
 
Registered: Sep 2003
Location: Michigan
Distribution: Gentoo, Knoppix
Posts: 69

Rep: Reputation: 15
Limit console results


I know this is a stupid ?, but I can't seem to dig it up anywhere,

-How do I limit the reuslts of a command, say ls, to only display what will fit in the console and allow me to say pagedown in the results or space to get the next group of results that fits in the console window.

Thx in advance
paintcheck
 
Old 10-11-2004, 08:50 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
ls | more

This'll display one screenful at a time, press return to move to the next lot.
 
Old 10-11-2004, 09:32 AM   #3
mbeach
LQ Newbie
 
Registered: Oct 2004
Location: Bermuda
Distribution: Ubuntu 5.10 (Suse convert)
Posts: 14

Rep: Reputation: 0
not kidding here, but you may also have "less" installed.

ls | less
 
Old 10-11-2004, 09:39 AM   #4
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
In my opinion, less is more. err.... I mean better.
 
  


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
How can i limit the netstat local results on fedora core 3 vtecturbo13 Linux - General 2 10-11-2005 04:21 PM
How to limit/control console output? jaristr Linux - Newbie 5 08-28-2005 04:10 PM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 11:00 PM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 08:35 AM
X server in console 1 crashes on return from console 2 fieldmethods Red Hat 4 09-05-2003 01:12 AM


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