How to adjust scrollback buffer limit?

QuestionsQuestions8 SkillsProYour First Linux LabOct, 25 2025
01.9k

To adjust the scrollback buffer limit in your terminal emulator, the steps may vary depending on which terminal you are using. Here are instructions for some common terminal emulators:

1. GNOME Terminal (Linux):

  • Open GNOME Terminal.
  • Go to the menu and select Preferences.
  • Select your profile (usually "Unnamed").
  • Under the Scrolling tab, you can adjust the Scrollback settings. You can set a specific number of lines or enable unlimited scrollback.

2. Konsole (KDE):

  • Open Konsole.
  • Go to Settings > Edit Current Profile.
  • In the Scrolling tab, you can set the scrollback lines limit or enable unlimited scrollback.

3. iTerm2 (macOS):

  • Open iTerm2.
  • Go to Preferences (Cmd + ,).
  • Select the Profiles tab and choose your profile.
  • Under the Terminal tab, you can adjust the Scrollback Lines setting.

4. Terminal (macOS):

  • Open the Terminal app.
  • Go to Preferences (Cmd + ,).
  • Select the Profiles tab and choose your profile.
  • Under the Text tab, you can adjust the Scrollback settings.

5. Windows Terminal:

  • Open Windows Terminal.
  • Click on the dropdown arrow next to the tabs and select Settings.
  • Choose the profile you want to modify (e.g., Command Prompt, PowerShell).
  • Under the Scrolling section, you can adjust the Scrollback lines setting.

6. tmux:

If you are using tmux, you can set the scrollback buffer limit in your .tmux.conf file:

set -g history-limit 10000  # Set to desired number of lines

After editing the file, reload the configuration with:

tmux source-file ~/.tmux.conf

After making these adjustments, you should be able to scroll back further in your terminal history.

0 Comments

no data
Be the first to share your comment!