Skip to content

Instantly share code, notes, and snippets.

@0x6B386F
Forked from franzflasch/byobu-cheat-sheet.md
Created March 13, 2020 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x6B386F/9ae36d3bf2bebacebad6425dd4a5d84b to your computer and use it in GitHub Desktop.
Save 0x6B386F/9ae36d3bf2bebacebad6425dd4a5d84b to your computer and use it in GitHub Desktop.
byobu cheat sheet

Create new named session:

byobu -S <session-name>

List windows of named session

byobu -S <session-name> ls

Attach to named session on windows 1

byobu -S <session-name> attach-session -t 1

Create new window

F2

Create new horizontal split window

shift + F2

Create new vertical split window

ctrl + F2

Select specific window

F12 then <window-nr>

Close current window or split

ctrl + F6

Go through windows

alt + key_left/key_right

Go through splitted windows

shift + key_up/key_down/key_left/key_right

Scrolling

F7 + key_up/key_down/page_up/page_down

Disable/Enable outer keybindings when using nested byobu sessions:

shift + F12 

Copy paste

F7, for scrollback mode
move cursor to the beginning of the lines to be copied, press SPACE
move cursor to the end of the lines to be copied, press enter
press Alt + Insert to paste

Rename a byobu tab

F8

Move tab to the left

ctrl-shift-F3

Move tab to the right

ctrl-shift-F4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment