LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-27-2005, 12:15 PM   #1
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Rep: Reputation: 15
How to limit/control console output?


Hi. I suppose this has been asked before but I can't find the answer so I'll just ask.
I am trying to use sfdisk but it prints too much in the console at a time so that you cant see whole output. Is there any way to limit the output?
I cannot scroll because this does not happen in x server.

Thank you!
 
Old 08-27-2005, 12:21 PM   #2
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
Use a pipe: commannd | more. Then u can press enter to see the next page.
 
Old 08-27-2005, 12:21 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You could use a pipe (|) and the "more" or "less" commands, eg. "sfdisk | less". See "man less" and "man more" for more info.
 
Old 08-27-2005, 12:42 PM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
But remember, less is more than more (it lets you scroll up in addition to down).
 
Old 08-27-2005, 11:45 PM   #5
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
Thumbs up

Great, thank you!
 
Old 08-28-2005, 03:10 PM   #6
Grasshopper
Member
 
Registered: Nov 2003
Location: CT, USA
Posts: 55

Rep: Reputation: 15
I use <shift> + <Page Up> or <Shift>+<Page Down> to scroll around in a console session. It works for me under X when using the command line or from a conventional console without X running. Also you can use <shift> + <up arrow> and <shift> + <down arrow> to move one line at a time in the desired direction.

These commands have the benefit of allowing you to view output that has passed your viewable area even if you forgot to call the command with "less" or "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
how to limit user control in gui? asschay Linux - Security 1 07-28-2005 04:20 PM
Bandwidth Limit Und Trafic Control fritz001 Slackware 1 10-22-2004 05:30 AM
Limit console results paintcheck200 Linux - Newbie 3 10-11-2004 08:39 AM
limit bandwidth control router linux saavik Linux - Networking 5 02-24-2004 10:42 AM
Console output to X? dcm1878 Linux - Software 4 04-23-2003 08:07 PM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
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