LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2005, 01:10 PM   #1
bong.mau
Member
 
Registered: Apr 2004
Posts: 396

Rep: Reputation: 30
Consoles


Hi

i'm a linux newbye
if i load linux in runlevel 3 how can i issue coommnad to see the complete output diplayed step by step as the output fills the screen ?
example in windows i can issue the command
dir aaaa.* /p
as the sreen is filled the output remain visible,then i can see the other output parts pressing each time the enter key...
is there something similar in linux ?
thanks in advance
Maurizio
 
Old 09-05-2005, 01:18 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Try:

ls | more

Regards!
 
Old 09-05-2005, 01:19 PM   #3
jayemef
Member
 
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
Try the less command:
Code:
$ ls | less
Spacebar can be used to go to the next page. 'q' will quit. See the manpage for more commands.

Edit: less seems to be prefered over more. The following is taken from the more manpage:
Quote:
man more:
More is a filter for paging through text one screenful at a time. This version is especially primitve. Users should realize that less(1) provides more(1) emulation and extensive enhancements.

Last edited by jayemef; 09-05-2005 at 01:25 PM.
 
Old 09-05-2005, 01:25 PM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Is there something similar in linux?
Yes--they're called pagers. less(1) is the most well-known (and used, I guess), see also more(1). There's also a browser called w3m which is usable as a pager too.

Here's the incantation:
Code:
$ ls * | less
`q' quits, `h' (or --help/man/info) for help.

That covers basic paging. Now, you talk about runlevels and booting up, which makes me believe that
Code:
$ dmesg | less
is what you want.

hth --Jonas
 
Old 09-05-2005, 01:36 PM   #5
bong.mau
Member
 
Registered: Apr 2004
Posts: 396

Original Poster
Rep: Reputation: 30
Hi

Thanks for the answer.
Maurizio
 
Old 09-05-2005, 01:59 PM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
I'm not making fun about jayemef's post (which by the way, is better then my answer to the OP), but I found this man statement amusing:

"Users should realize that less provides more..."

No wonder why newbies found Linux complicated, in a World where less provides more?
 
  


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
more consoles Donald1000 Solaris / OpenSolaris 2 02-18-2005 12:12 PM
what's the difference between the consoles? ScrewMicrosoft Linux - General 1 09-29-2003 12:36 PM
Consoles and Terminals jarget Linux - Newbie 2 09-05-2003 12:04 PM
virtual consoles naflan Slackware 1 08-02-2003 01:13 PM
How many consoles co you use? Mara General 4 03-18-2002 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration