LinuxQuestions.org
Help answer threads with 0 replies.
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 07-20-2010, 11:49 AM   #1
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Rep: Reputation: 17
scrolling in command line


Ok, im installing gentoo on to my lappy and i have one problem if i do a command like help or something to that affect half of the commands dissapper so how do i scroll on it
 
Old 07-20-2010, 11:55 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
you can use "more" or "less" with pipe

Code:
command | less
OR
command | more
 
Old 07-20-2010, 11:56 AM   #3
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
You might be able to scroll the screen back by using the SHIFT+PGUP key combination.

When a command produces enough output to scroll the screen you may consider piping it through less.

Code:
help | less
When done reading you can press the q key to exit back to the command line.

HTH
 
Old 07-20-2010, 12:17 PM   #4
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
does that mean that if i do the | less that it will explain less or no?
 
Old 07-20-2010, 12:55 PM   #5
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
less is a pager, like more but better in some ways. It simply displays the text 1 page at a time. For details you can enter less --help or man less.

http://linuxcommand.org/man_pages/less1.html
 
Old 07-20-2010, 01:25 PM   #6
myposts
Member
 
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21
Less is more

less is the way... it can be scrolled back and forth, forward with spacebar, backwards with "b" and if you press "v" it will instantly load the the content asa new file in "vi" for editing! See "Linux for dummy" book or "Learn Linux" DVD by unixacademy if you have questions like that.

Last edited by myposts; 07-20-2010 at 01:29 PM.
 
Old 07-20-2010, 03:04 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by animeman View Post
does that mean that if i do the | less that it will explain less or no?
Not even close.

The less program is a "pager". It takes a long document and lets you scroll in it in the terminal. The "|" operator in the shell sends the output of the command to the left into the input of the command to the right, instead of to the screen. So basically it lets you scroll through the big output that doesn't fit in the screen.
 
Old 07-20-2010, 03:46 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,304
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Shift + PageUp
Shift + PageDown

You can | more or | less and get the output in spurts. Or just 2>&1 | tee -a logit.log and store to look at later. It depends on why you need to look at the past anyway. Some xterms have scroll bars on the side. And you can change resolutions to see more on the same screen. Options galore.
 
  


Reply

Tags
command line


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 Stop Command Results from Scrolling Off the Screen ahr8tch Linux - Newbie 6 12-16-2009 01:32 AM
How to change gnome-terminal command line from scrolling left to wrapping primorec Linux - Desktop 0 11-19-2007 03:24 AM
Xterm command line scrolling dah328 Linux - General 2 04-27-2006 04:32 PM
Scrolling command line terminal FlashAsh99 Linux - Newbie 3 06-27-2005 11:02 AM
part of line disappears when scrolling in Mozilla andrewstr Linux - Software 4 11-05-2003 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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