Post

Byobu Keyboard Shortcuts Cheat Sheet

Complete keyboard shortcuts reference for byobu terminal multiplexer, organised by function for efficient terminal session management.

Byobu Keyboard Shortcuts Cheat Sheet

Byobu is a GPLv3 open source text-based window manager and terminal multiplexer that provides elegant enhancements to GNU Screen and Tmux. Originally designed for Ubuntu server distribution, byobu now works across most Linux, BSD, and Mac distributions, offering system status notifications, convenient keybindings, and configuration utilities.

Why Choose Byobu?

Over Standard Terminal/SSH:

  • Multiple sessions in one terminal - Run multiple commands simultaneously without opening new terminal windows
  • Persistent sessions - Sessions survive network disconnections and can be reattached later
  • System monitoring - Built-in status bars showing CPU, memory, network, and system information
  • Enhanced productivity - Quick window/pane switching, copy/paste functionality, and session management

Over Plain Screen/Tmux:

  • Pre-configured - Works out of the box with sensible defaults and attractive status bars
  • User-friendly - F-key shortcuts instead of complex key combinations
  • Status notifications - Real-time system information without additional configuration
  • Modern interface - Clean, informative display with customisable colours and layouts

Installation

Byobu is available in most major Linux distributions:

DistributionInstall Command
Debian/Ubuntusudo apt-get install byobu
Fedora/RHELsudo dnf install byobu
Arch Linuxsudo pacman -S byobu
Alpine Linuxapk add byobu
macOSbrew install byobu
FreeBSDsudo pkg install byobu

Basic usage:

CommandDescription
byobuLaunch byobu manually
byobu-enableEnable byobu by default for SSH sessions (adds byobu to .bashrc)

Keyboard Shortcuts Reference

Byobu’s default escape sequence is Ctrl+a. If you’ve customised yours, replace Ctrl+a throughout this guide. Check current setting: F9 → ‘Change escape sequence’.

Help & Information

ShortcutActionNotes
Shift+F1Display helpShow most common keyboard shortcuts

Window Management

ShortcutActionNotes
F2Create new windowOpens a new terminal window/tab
F8Rename current windowChange the window title
Ctrl+Shift+F3 / Ctrl+Shift+F4Move a windowReorder windows left/right
Ctrl+a kKill current windowCloses the active window
Alt+F11Expand split to full windowConvert pane to separate window

Window Navigation

ShortcutActionNotes
F3 / F4Move focus among windowsCycle through windows
Ctrl+a 0-9Switch to window NDirect window access by number
Ctrl+a "List all windowsInteractive window selection menu

Session Management

ShortcutActionNotes
Ctrl+Shift+F2Create new sessionStart a new byobu session
Ctrl+F8Rename current sessionChange the session name
Alt+Up / Alt+DownMove focus among sessionsSwitch between byobu sessions
F6Detach session and logoutLeave session running, exit shell
Shift+F6Detach session, don’t logoutLeave session running, keep shell

Split Management (Panes)

ShortcutActionNotes
Shift+F2Create horizontal splitCreate pane below current pane
Ctrl+F2Create vertical splitCreate pane beside current pane
Ctrl+F6Kill split in focusClose the active pane
Ctrl+F11Join window into vertical splitConvert window to split
Ctrl+F3 / Ctrl+F4Move a splitReposition current pane
Shift+Alt+Left/Right/Up/DownResize a splitAdjust pane boundaries
Shift+F8Toggle through split arrangementsCycle through layout presets
Ctrl+Shift+F8Save current split-pane layoutStore layout for later
Alt+Shift+F8Restore a split-pane layoutLoad previously saved layout

Split Navigation

ShortcutActionNotes
Shift+F3 / Shift+F4Move focus among splitsNavigate between panes
Shift+Left/Right/Up/DownMove focus among splitsArrow key navigation between panes
Shift+F11Zoom into/out of splitToggle pane maximisation
Ctrl+a TabFocus next splitAlternative pane switching
Ctrl+a oFocus next splitScreen-style pane switching
Ctrl+a zToggle pane zoomAlternative zoom (tmux backend)

Profile & Status Management

ShortcutActionNotes
F5Reload profile, refresh statusUpdate configuration and display
Shift+F5Toggle through status linesCycle status bar visibility
Ctrl+F5Reconnect SSH/GPG/D-Bus socketsRefresh authentication
Ctrl+Shift+F5Change status bar colour randomlyRandomise status bar appearance

Copy & Paste Mode (Scrollback)

ShortcutActionNotes
F7Enter scrollback historyNavigate terminal history
Alt+PgUp / Alt+PgDnEnter and move through scrollbackAlternative scrollback access
Shift+F7Save history to fileExport scrollback to $BYOBU_RUN_DIR/printscreen
SpaceStart text selectionBegin highlighting text (in copy mode)
EnterCopy selected textCopy highlighted text to buffer
Alt+InsertPaste copied textInsert previously copied text
Ctrl+a ]Paste copied textAlternative paste method

Configuration & Advanced Commands

ShortcutActionNotes
F9Launch byobu-configAccess settings and options
Ctrl+F9Run command in all windowsExecute command across all windows and last focused split per window
Shift+F9Run command in all splitsExecute command across all panes on current window
Alt+F9Toggle input to all splitsSend keystrokes to all panes on current window simultaneously

Legacy Screen-Style Commands

ShortcutActionNotes
Ctrl+a cCreate new windowScreen-style window creation
Ctrl+a nNext windowScreen-style navigation
Ctrl+a pPrevious windowScreen-style navigation
Ctrl+a ARename windowAlternative rename method

Workflow Tips

Efficient Split Management

  1. Create your layout: Use Shift+F2 and Ctrl+F2 to create your desired pane layout
  2. Focus navigation: Use Shift+F3/Shift+F4 to move between panes quickly
  3. Zoom when needed: Press Shift+F11 to focus on one pane, then Shift+F11 again to return to splits
  4. Clean up: Use Ctrl+F6 to remove unwanted panes or Shift+F11 to combine all

Session Persistence

  1. Detach safely: Use F6 to detach while keeping everything running
  2. Reattach later: Run byobu to reconnect to your session
  3. Multiple sessions: Use byobu -S session_name to create named sessions

Copy/Paste Workflow

  1. Enter copy mode: Press F7 or Alt+PgUp
  2. Navigate: Use arrow keys or Page Up/Down to find content
  3. Select text: Press Space, highlight with arrows, press Enter
  4. Paste: Use Alt+Insert or Ctrl+a ]

Customisation

Byobu configuration files are stored in ~/.byobu/:

  • keybindings.tmux - Custom key mappings for tmux backend
  • statusrc - Status bar configuration
  • color.tmux - Colour scheme customisation

Access the configuration menu with F9 for guided setup options.

References

This post is licensed under CC BY 4.0 by the author.