October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

What Is a Scrollback Buffer? Terminal History Explained

A scrollback buffer retains earlier terminal output so you can review lines no longer visible. Its limit and controls depend on the terminal or multiplexer.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A scrollback buffer is the history of terminal output that remains available after it moves above the visible screen. It lets you scroll back to inspect earlier commands and results. The amount retained depends on the terminal emulator or other program handling the session, and may be configurable.

What a scrollback buffer does

A terminal window can display only a limited number of lines at once. As new output appears, older lines move off the visible area. The scrollback buffer retains some of those lines so you can review them by scrolling upward.

As an Amazon Associate I earn from qualifying purchases.

It stores terminal output for review; it is not a universal, permanent log of everything a session has displayed. Retention and controls vary by application and configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where terminal scrollback is maintained

Terminal emulator

A terminal emulator can keep scrollback as a setting associated with a profile. In GNOME Terminal, open Preferences, select the active profile, then choose Scrolling. There you can set the line limit or disable Limit scrollback to to allow unlimited history. GNOME Terminal also documents a Scroll on keystroke preference. See the GNOME Terminal scrolling help.

GNOME Terminal’s help says its scrollback data is kept in compressed and encrypted temporary files, with the space freed when the terminal closes. That describes GNOME Terminal’s documented behavior, not a rule for all terminal applications.

Terminal multiplexer

A multiplexer can keep a separate history buffer in addition to the emulator’s scrollback. For example, tmux maintains history for each window. Its manual says the default is up to 2,000 lines per window, configurable with the history-limit option. That is a tmux default, not a universal terminal setting. See the tmux manual.

If scrolling stops sooner than expected, the active layer matters: you may have reached the history limit of the emulator, the multiplexer, or both. Adjust the relevant application’s setting rather than assuming there is one shared buffer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How much output does it retain?

There is no universal line count. The documented values differ by software:

  • GNOME Terminal: offers an unlimited scrollback option in its profile settings. Its help page advises that a giant buffer can slow window resizing and gives around one million lines as a rule of thumb for noticeable slowdown. This is GNOME Terminal guidance, not a general performance threshold. GNOME Terminal scrolling help
  • tmux: its manual states a default of up to 2,000 lines per window, adjustable through history-limit. tmux manual
  • rxvt: its manual documents a 64-line default for saveLines and a limit of 65,535 on most machines. These are rxvt documentation values; the indexed reference does not establish a current version, so do not treat them as current defaults for other terminals. rxvt manual

Increasing retention can make more earlier output available, but the effect on storage and responsiveness depends on the application. GNOME Terminal specifically warns about slower resizing with very large buffers.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can scrollback be cleared or saved?

Controls vary by application. The clear utility documents clearing saved scrollback as well as the visible screen, using terminal control sequences; the effect depends on whether the terminal supports the relevant extension. See the clear manual.

Some terminal applications also provide an export function. Eterm, for example, documents saving scrollback to a file. This is an application-specific capability, not a feature guaranteed by every terminal. See the Eterm manual.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.