-   Fedora (
-   -   "Scrolling up" in a plain login prompt (no X) (

ddvlad 09-25-2006 04:21 PM

"Scrolling up" in a plain login prompt (no X)

As part of my effort to learn more about console tools, I have installed Fedora Core 5 with no graphical elements. My question is, can I "scroll up" in a plain Bash login screen? I know about piping output to less, but that's not always possible (or I may not know about it -- after all, that's why I'm posting). For instance, I ran yum update, which displayed a huge list of package needing update. Naturally, this did not fit in 25 lines. Can I, in this case, see previous output?

As a side question, do you think my choice is right? Graphical interfaces just distract me and pretty soon I would end up using them exclusively, thus nulling my quest to learn console tools. I can use Vim and Elinks acceptably, and in my view it's a good start: I can search the web and manually edit configuration files.

Thanks and congrats on the community,

i_grok 09-25-2006 04:46 PM

Use <Shift>+<Page Up> and <Shift>+<Page Down>. Unfortunately, the amount you will be able to see will still be limited.

You might like to take a look at the 'screen' utility if you really love the command line. It does all sorts of wonderful things.

BeerIsGood 09-27-2006 10:24 PM

You can also direct output of a process to a text file to review later, eg:

yum update > update.log
less update.log

However, you won't see the text output while the first process is running. Not sure if you can direct output to the screen at the same time.

i_grok 09-28-2006 09:48 AM

You can view the output and write to a file at the same time using tee:

yum update | tee update.log
Notice that this will only capture standard output. Error messages will not be directed to these files. To do all messages to update.log:

yum update 2>&1 | tee update.log

ddvlad 09-28-2006 03:55 PM

All of your advice was interesting and useful. Thank you kindly.

All times are GMT -5. The time now is 03:32 PM.