LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2009, 04:10 AM   #1
fluteofliar
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
scrollback buffer


Plz tell me command using which i can increase the size of my scrollback buffer in red hat linux..
thankz in advance wth regards.
 
Old 10-25-2009, 04:34 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
If you're using an xterm-based (gui) application, then it probably depends on the settings of that program. I use konsole, for example, and it has a setting for how much history you want.

In a pure cli terminal I believe it depends on the buffer that's been hard-coded into the kernel video driver you're using, probably vesa. The only way to change that is to recompile your kernel.

There is however a program called screen which provides multiple virtual terminals in cli mode, and I'm pretty sure you can adjust the scrollback buffer there, just like you can with gui consoles.
 
Old 10-25-2009, 04:47 AM   #3
fluteofliar
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
thanks a super ton for a quick response,
i mean while using command in virtual console,we can see the history of command we used using page-up,down keys
is there any setting to limit those list,like i can only see the last used 10 or 20command not more than that?
 
Old 10-25-2009, 02:34 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Ah, so you mean the command history, and not the scrollback. In the future, if you aren't sure about the terminology, you should take more care to make it clear what you are referring to.

In bash, the command history size is controlled by the environmental variables HISTSIZE and HISTFILESIZE. Other shells probably have similar settings.

There are other useful settings as well, such as HISTCONTROL, where you can set options such as ignoring duplicate entries. The man page for bash will tell you more about them.

BTW, <20 commands is incredibly small. My bash man page says the default is 500 lines. Strange.
 
Old 10-25-2009, 02:39 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Assuming that you're using BASH, this will give you some information about bash history variables.
 
  


Reply

Tags
buffer


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
Preserve Scrollback Buffer between console switch _madman_ Linux - General 2 10-12-2009 12:50 AM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-26-2006 12:57 AM
newlines in scrollback buffer - eterm asouldja Debian 0 05-04-2005 07:41 AM
white space in eterm scrollback buffer asouldja Linux - Software 0 05-03-2005 07:49 AM
scrollback buffer? synaptical Linux - General 8 10-05-2003 05:04 PM


All times are GMT -5. The time now is 08:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration