Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-27-2005, 12:15 PM   #1
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
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

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
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
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
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
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".


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 03:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration