View previous topic :: View next topic |
Author |
Message |
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Tue May 06, 2003 3:23 am Post subject: Increasing console buffer size |
|
|
Is there a way to increase the size of the console buffer? I am trying to troubleshoot something but there are too many lines in the output. It does not all get captured by the buffer, so that when I use Shift-PgUp to go back, I am missing the first part of the output. |
|
Back to top |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Tue May 06, 2003 4:06 am Post subject: |
|
|
is this a terminal within an x session, or from the straight Command Line? |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Tue May 06, 2003 10:18 am Post subject: |
|
|
Actually, I'd be interested in how to do this in either situation. |
|
Back to top |
|
|
Steffen Apprentice
Joined: 14 Jul 2002 Posts: 159
|
Posted: Tue May 06, 2003 12:04 pm Post subject: |
|
|
In Konsole you can achieve this by clicking on "Settings > History". Another way is to redirect the output into a file, for example:
Code: | emerge kde | tee kde_log.txt |
|
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Tue May 06, 2003 1:35 pm Post subject: |
|
|
For xterm rxvt and most other terminals buffer size is a command line option. Ccheck out the amn page for the knosole you're using. For regular consoles I typically pipe the output to less. Though for somenting with as much output as an emerge redirecting to a file is probably better. |
|
Back to top |
|
|
jimlynch11 Guru
Joined: 21 Feb 2003 Posts: 590 Location: massachusetts
|
Posted: Tue May 06, 2003 2:48 pm Post subject: |
|
|
for aterm(and i think eterm) change the startup command (from whichever start menu or icon you use) to include:
that makes the buffer damn large, but you can change that number to whatever you see fit... |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Tue May 06, 2003 3:58 pm Post subject: |
|
|
Is there a way to increase the size for the scrollback buffer when the computer first boots up? I know that dmesg will print some of the output, but it does not capture the output from the scripts that are run at boot.
And is there a way to dump that buffer to a file? |
|
Back to top |
|
|
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Tue May 06, 2003 4:08 pm Post subject: |
|
|
You could also use screen (awesome program regardless) and enable logging to capture everything. The tee program will also allow you to send the standard input to a file as well as back to standard input. This should do the trick (as long as the debug info goes to standard output and not the stderr)
Code: | <command> | tee <logfile> |
As for the output from initscripts, the only thing I could possibly think of would be log files. I'm not certain how to increase the buffer size or dump the output to log files (if it's even possible). Maybe use use a framebuffer screenshot program |
|
Back to top |
|
|
|