Skip to content

Instantly share code, notes, and snippets.

@AnthonyZJiang
Created June 13, 2025 10:47
Show Gist options
  • Save AnthonyZJiang/d18d15e2913f1b039aab50e182159744 to your computer and use it in GitHub Desktop.
Save AnthonyZJiang/d18d15e2913f1b039aab50e182159744 to your computer and use it in GitHub Desktop.
byoku shortcut

Keybinding definition

byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used).

Window/layout shortcuts

Key Combination Action
F2 Create a new window
F3 Move to previous window
F4 Move to next window
F5 Reload profile
F6 Detach from this session
F7 Enter copy/scrollback mode
F8 Re-title a window
F9 Configuration Menu
F12 Lock this terminal
Shift + F2 Split the screen horizontally
Ctrl + F2 Split the screen vertically
Shift + F3 Shift the focus to the previous split region
Shift + F4 Shift the focus to the next split region
Shift + F5 Join all splits
Ctrl + F6 Remove this split
Ctrl + F5 Reconnect GPG and SSH sockets
Shift + F6 Detach, but do not logout
Alt + PgUp Enter scrollback mode
Alt + PgDn Enter scrollback mode
Ctrl + A $ Show detailed status
Ctrl + A R Reload profile
Ctrl + A ! Toggle key bindings on and off
Ctrl + A k Kill the current window
Ctrl + A ~ Save the current window's scrollback buffer

SCROLLBACK, COPY, PASTE MODES

Each window in Byobu has up to 10,000 lines of scrollback history, which you can enter and navigate using the Alt + PgUp and Alt + PgDn keys. Exit this scrollback mode by hitting enter.

You can also easily copy and paste text from scrollback mode:

  1. Enter scrollback mode using Alt + PgUp or Alt + PgDn
  2. Start highlighting: Press the Spacebar to begin text selection
  3. Select text: Use arrow keys (, , , ) and page keys (PgUp, PgDn) to navigate and select the desired text
  4. Copy text: Press Enter to copy the selected text
  5. Paste text: Use Alt + Insert or Ctrl + A + ] to paste the copied text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment