LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I see all text in console? (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-see-all-text-in-console-313680/)

fannymites 04-15-2005 06:35 PM

How do I see all text in console?
 
I feel I should know this but I can't seem to find the answer -
After typing commands in a console which return a lot of text, I am only able to scroll so far up and can't get to the beginning of the text.
What is the correct way to do this?

SciYro 04-15-2005 07:00 PM

use a pager, there are 2 installed usually

1) "more" - really only there for compatibility reasons, you can only scroll down

2) "less" - more or less a joke on "more"s behalf, this one can scroll up and down.

example
Code:

tar -h | less
just press 'q' to quit, in more, if you get to the end,it exits for you

mcd 04-15-2005 07:01 PM

terminals and consoles have a limit to the number of lines that they save. i don't know what the default is, and it's almost certainly different for every terminal. anyway, i use aterm, and i know that the option is like this:

aterm -sl 4000

if you want to be able to scroll through the last 4000 lines of output.


All times are GMT -5. The time now is 10:52 AM.