LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to increase my terminal buffer (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-increase-my-terminal-buffer-752805/)

ler0nldb2 09-04-2009 10:30 PM

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.

jstephens84 09-04-2009 10:50 PM

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

ler0nldb2 09-04-2009 11:15 PM

Quote:

Originally Posted by jstephens84 (Post 3670456)
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.

jstephens84 09-04-2009 11:35 PM

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.

catkin 09-05-2009 06:55 AM

Quote:

Originally Posted by ler0nldb2 (Post 3670442)
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.

ler0nldb2 09-05-2009 09:30 AM

Quote:

Originally Posted by jstephens84 (Post 3670481)
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.

ler0nldb2 09-05-2009 09:32 AM

Quote:

Originally Posted by catkin (Post 3670743)
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.

catkin 09-05-2009 10:20 AM

Quote:

Originally Posted by ler0nldb2 (Post 3670868)
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.


All times are GMT -5. The time now is 05:24 PM.