LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Make bash remember more (https://www.linuxquestions.org/questions/linux-software-2/make-bash-remember-more-676912/)

1veedo 10-16-2008 04:57 PM

Make bash remember more
 
On the tty shells is there a way to make them remember more and not empty their cache when you switch tty windows?

smbell100 10-16-2008 05:36 PM

There is a program called screen which extends the capabilities of the tty, including an extended scrollback.

Found it at http://www.linux-archive.org/ubuntu-...tty-terms.html. It is installed by default on my system (Mandriva 2008).

Might be worth a look

jailbait 10-16-2008 05:41 PM

The size of the bash history size is set by the variable HISTFILESIZE. You can display the history size with:

echo $HISTFILESIZE

You can change the history file size with:

HISTFILESIZE=1000

or whatever number you choose. You may also have to change HISTSIZE which is the number of commands to keep in the history file.

I think that there is a separate bash history for each tty so I don't think that you can see the history of one tty while you are on another.

-----------------------
Steve Stites

P.S. See the History section in:
man bash

1veedo 10-18-2008 11:13 AM

I'm not talking about history I'm actually talking about the text that's displayed in the ttys.

I found out that there's a kernel optin in device drivers-> graphics support-> console characters I think that lets you change the value. Default is 128K. In order to actually make it take effect though you have to add fbcon=scrollback:XXXXK to your kernel line in your bootloader. This will keep more text stored "above" you but the kernel still ends up forgetting what was on the other ttys when you switch them. So does anyone know how to make it keep the buffer/cache in the other ttys when you switch out of them?


Also I know about screen but I'm just talking the old fashioned terminal.


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