LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 09-04-2009, 09:30 PM   #1
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Rep: Reputation: 15
How to increase my terminal buffer


I have checked similar threads but found no satisfactory answer.
I want to increase the size of my terminal buffer so that later command output won't truncate earlier commands' output. I am not ready to download new 'packages' just yet.

Also, in the big result in the Terminal's output, would be nice if one can 'Find' (CTRL-F in Windows) a particular string...

I have Ubuntu 8.4.2

Thank you.
 
Old 09-04-2009, 09:50 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
What terminal are you using? rxvt, konsole, xterm? If you are looking for a particular string then
Code:
<command here> | grep "<string>"
Also you can look into redirecting the output of a command to a file for future review. Just another option. You can do that by

Code:
command > /path/filename.whatever
 
Old 09-04-2009, 10:15 PM   #3
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jstephens84 View Post
What terminal are you using? rxvt, konsole, xterm? If you are looking for a particular string then
Code:
<command here> | grep "<string>"
Also you can look into redirecting the output of a command to a file for future review. Just another option. You can do that by

Code:
command > /path/filename.whatever
Thanks for the pipe, grep and redirect suggestion. This should be good for my Ctrl_F needs.

My terminal info:
Terminal 2.22.1
A terminal emulator for the GNOME desktop

Thanks.
 
Old 09-04-2009, 10:35 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
To edit the scroll back lines, when you open up the terminal click on edit then click on profile perferences, and then click on scrolling tab. You can change the number of lines you can scroll back too.
 
Old 09-05-2009, 05:55 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,523
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by ler0nldb2 View Post
I have checked similar threads but found no satisfactory answer.
I want to increase the size of my terminal buffer so that later command output won't truncate earlier commands' output. I am not ready to download new 'packages' just yet.

Also, in the big result in the Terminal's output, would be nice if one can 'Find' (CTRL-F in Windows) a particular string...

I have Ubuntu 8.4.2

Thank you.
When you write "terminal buffer" do you mean the history of commands or do you mean the number of lines that of terminal display you can use the scroll bar to scroll back through (I don't know what Ctrl_F does in Windows).

To search through past commands, try Ctrl+R then enter a search string. Ctrl+R again will look for the next oldest occurrence of that string.
 
Old 09-05-2009, 08:30 AM   #6
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jstephens84 View Post
To edit the scroll back lines, when you open up the terminal click on edit then click on profile perferences, and then click on scrolling tab. You can change the number of lines you can scroll back too.
You solved the output terminal problem!

Thank you.
 
Old 09-05-2009, 08:32 AM   #7
ler0nldb2
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by catkin View Post
When you write "terminal buffer" do you mean the history of commands or do you mean the number of lines that of terminal display you can use the scroll bar to scroll back through (I don't know what Ctrl_F does in Windows).

To search through past commands, try Ctrl+R then enter a search string. Ctrl+R again will look for the next oldest occurrence of that string.
My bad. I had two questions in one post. The question about Windows Ctrl_F, a FIND function, (you can try that with any web page, except that Windows extends that function to any of its documents) has been met with the suggestion to use a combination of pipe, grep and redirect commands to search for a particular string from a huge output of a command.

For the other question, I should have been a little more specific about the buffer of my terminal. The input buffer, which allows me to cycle through my previous commands, is adequate. But the output buffer, which allows me to scroll back and forth to view the (large) output of a command, such as <dmesg>, is a little small. As a result, the top portion of the output got truncated. I wished to increase the output buffer of my terminal so that I can view the entire output result of my commands. But this question has also been resolved by an earlier post.

Thanks.
 
Old 09-05-2009, 09:20 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,523
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by ler0nldb2 View Post
My bad. I had two questions in one post. The question about Windows Ctrl_F, a FIND function, (you can try that with any web page, except that Windows extends that function to any of its documents) has been met with the suggestion to use a combination of pipe, grep and redirect commands to search for a particular string from a huge output of a command.

For the other question, I should have been a little more specific about the buffer of my terminal. The input buffer, which allows me to cycle through my previous commands, is adequate. But the output buffer, which allows me to scroll back and forth to view the (large) output of a command, such as <dmesg>, is a little small. As a result, the top portion of the output got truncated. I wished to increase the output buffer of my terminal so that I can view the entire output result of my commands. But this question has also been resolved by an earlier post.

Thanks.
Oh! That Ctrl+F! You might also try
Code:
dmesg | less
which lets you use /<string> (without the < > signs) to search forwards and ?<string> to search backwards. See the less man page for full details of it's searching commands. Does Ctrl+F work on the Windows command prompt screen? I never tried it.
 
  


Reply

Tags
buffer, terminal


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer r00tb33r Linux - Hardware 5 06-12-2009 12:10 AM
How to increase the serial transmit buffer size in the Kernel. pwlodarczyk Programming 13 01-21-2009 04:39 PM
How to increase buffer size on the shell just_a_kid Solaris / OpenSolaris 3 06-22-2007 06:12 AM
Increase the command line buffer size Akiles Linux - General 3 04-19-2005 11:17 AM
how to increase serial receive email buffer size? HZC Programming 0 02-14-2005 10:32 PM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration