Share your knowledge at the LQ Wiki.
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 10-11-2004, 07:47 AM   #1
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
Old 10-11-2004, 07:50 AM   #2
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, 08:32 AM   #3
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, 08:39 AM   #4
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.


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 03:21 PM
How to limit/control console output? jaristr Linux - Newbie 5 08-28-2005 03:10 PM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM
X server in console 1 crashes on return from console 2 fieldmethods Red Hat 4 09-05-2003 12:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 PM.

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