LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2008, 04:57 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
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?
 
Old 10-16-2008, 05:36 PM   #2
smbell100
Member
 
Registered: Sep 2007
Location: Shetland, UK
Distribution: Slackware, Mandrake, LFS
Posts: 59

Rep: Reputation: 16
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
 
Old 10-16-2008, 05:41 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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

Last edited by jailbait; 10-16-2008 at 05:42 PM.
 
Old 10-18-2008, 11:13 AM   #4
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
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.
 
  


Reply


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
bash: make: command not found bene223 Linux - Newbie 4 06-26-2006 04:09 AM
bash: make: command not found MrPacane Linux - Newbie 2 05-24-2006 11:42 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
i want to now how to make a bash server Paxmaster Linux - Software 1 10-04-2004 05:22 PM
can't make SUSE remember IP settings after reboot...#$% roflash Linux - Networking 0 05-27-2002 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration