How to Increase Scrollback Buffer Size of the Terminal Emulators in Linux

by Jonathan Mann
8 minutes read

How to Increase Scrollback Buffer Size of the Terminal Emulators in Linux

Facility Image Augmenting Scrollback Barrier Size Terminal

Have you ever before discovered yourself scrolling through your terminal’s history, only to take that the genuinely recommending explanation you were gazing for is no longer recognizable? This is since the default scrollback buffer size of innumerable terminal emulators is oftentimes prohibited. By rising the buffer size, you can comfortably scroll upwards and also refer to previous commands and also their outputs.

In this guide, we’ll learn how to readjust the scrollback buffer size in innumerable terminal emulators.

Web content
  • Readjust Scrollback Via the Terminal Pose
  • Hose Your Output Correct into a boatload less Command
  • Search Within Output Obtaining serviceability of grep

Readjust Scrollback Via the Terminal Pose

The majority of terminal emulators bargain an recourse to readjust the scrollback buffer size balanced through their postures. This is the the majority of straightforward viewpoint to fine-tune the scrollback buffer size in Linux.

For example, if you are utilising the GNOME terminal, you can boom the buffer size by participating in the Likings menu. You can amenable this by clicking the hamburger menu button and also determining the Likings recourse.

Opening the Likings seating in the Gnome Terminal.

Next off, head over to your account postures and also read to the Scrolling tab. From there, you can readjust the number of lines that the terminal will undoubtedly strengthen in its scrollback buffer. Readjust this number according to your warnings.

Augmenting the Scrollback buffer size from the Scrolling tab in the Gnome terminal Likings seating.

You can in addition readjust different other scrolling-related postures, such as the Scroll on result and also Scroll on keystroke contingencies, to with one voice relevant-song your scrolling fiasco.

Click Cozy to conserve the alterations. That’s it! You have successfully elevated the buffer size of the GNOME terminal.

Furthermore, you can in addition readjust the buffer size for different other new-made terminal emulators in a parallel manner. For example, to readjust Konsole’s scrollback buffer size, simply relevant-click any place on the terminal and also decide the Readjust Scrollback recourse.

Letting loose the Konsole Readjust Scroll Ago postures in the terminal.

Here, you can readjust the scrollback lines seating to your desired desirability. Konsole in addition administers an Outright scrollback recourse, which can be priceless if you pine to strengthen a record of with one voice your terminal result.

Acclimating Scroll Ago Konsole terminal seating from the Readjust Scrollback dwelling window.

Tab: Preserve in mind that rising the scrollback restriction intakes a boatload more RAM. If you have a desktop computer through sufficient power, it will undoubtedly not burden your computer’s capability, however not with one voice computer systems have innumerable recollection. In a analogous method, make certain you have sufficient enfranchisement if you make a decision the balanced-out scrollback recourse.

Some terminals have assorted methodologies to rising the scrollback buffer size. For example, if you are utilising Alacritty, you’ll final alert to edit its YAML configuration file to boom the buffer size.

Hose Your Output Correct into a boatload less Command

Another method for you to perceive and also analysis bigger outputs without rising the scrollback buffer size is to hose your command result into the less command.

Via the a boatload less command, you can scroll through long command outputs at your own price without disgruntling about throwing away any documents. It permits you to perceive the result one page at a time, funneling out it easier to read and also hunt with one voice the web content.

For example, if you dashed a command that collects a substantial quantity of result, such as ls -lR, you can hose the result into a boatload less decide this:

ls -lR | less

This command permits you to perceive the result one sport at a time. In addition, you can serviceability the arrow traits to read upwards and also down. It’s decide owning a scrollback buffer however through even a boatload more manipulate.

You can even hunt through the result through / functioned together through by your hunt term, funneling out it easier to locate the certain explanation you final alert.

Furthermore, if you pine to dump the entire result into your terminal instead of perceiving it page by page, you can in addition serviceability the cat command. For example, replace the less command through the cat in the in yesteryear marketed command:

ls -lR | cat

Search Within Output Obtaining serviceability of grep

There is an recourse to locate a particular string utilising the less command. Yet, if you don’t pine to hose your result to less, you can hose it to grep along through your target message to position it in the command result.

The grep command permits you to locate particular explanation within a bigger result. Furthermore, you can hunt for patterns within message and also filter and also remove pertinent explanation from command result.

For example, if you pine to filter the result and also debunk only lines that have the word file, dashed:

ls -IR | grep file
Spotting choosy message of result by piping the Grep command.

Furthermore, grep possesses innumerable contingencies that enable you to tailor your hunt, such as overestimating sheath level of sensitivity (-i), brandishing the pitch digits (-n), or combing for innumerable patterns at as speedily as (-e).

Furthermore, you can serviceability grep command through stable decorum to perform a boatload more intricate scours. For instance, to locate with one voice lines launching through a number, execute this command:

grep "^[0-9]" output.txt

This will undoubtedly sport with one voice lines from result.txt that overture through a number.

Coating upwards

Whether you readjust the postures balanced in your terminal emulator or serviceability reliable commands decide less and also grep, these practices ensure that no explanation is ever before wasted. You can in addition tailor your terminal utilising innumerable contingencies, or even readjust your default terminal to any different other terminal.

Image credit: Unsplash. All alterations and also screenshots by Haroon Javed.

Related Posts