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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-04-2009, 09:30 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2009
Posts: 28
Rep:
|
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.
|
|
|
|
09-04-2009, 09:50 PM
|
#2
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
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
|
|
|
|
09-04-2009, 10:15 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2009
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by jstephens84
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.
|
|
|
|
09-04-2009, 10:35 PM
|
#4
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
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.
|
|
|
|
09-05-2009, 05:55 AM
|
#5
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,367
|
Quote:
Originally Posted by ler0nldb2
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.
|
|
|
|
09-05-2009, 08:30 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2009
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by jstephens84
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.
|
|
|
|
09-05-2009, 08:32 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2009
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by catkin
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.
|
|
|
|
09-05-2009, 09:20 AM
|
#8
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,367
|
Quote:
Originally Posted by ler0nldb2
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 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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|