Byobu

Byobu is a program that makes using terminal multiplexers really easy. A terminal multiplexer is like a windowing system for console programs. Byobu uses tmux by default, but can be configured to use GNU screen too.

Byobu allows you have many console windows or programs running at the same time. You can detach from Byobu and later restore the session, with all your terminals and programs running intact. This is similar to hibernating and restarting an OS back.

Usage

  • When opened, Byobu opens with your default shell. The bottom line of Byobu is like a taskbar and shows currently open windows (or tabs). You can see the default window (or tab) numbered 0 there.
  • To open a new session named foo, use the command: byobu -S foo

Keyboard shortcuts

Byobu uses the function keys for almost all its operations.

  • F2: Open a new window or tab. This means that a new shell session is opened in that window. This window is numbered 1, as seen at the bottom.
  • F3 or F4: Switch forward and backward between open windows.
  • F6 or Ctrl+A d: Detach from Byobu. Puts you back at the shell. All the windows and the shells inside them are still running. You get back to them whenever you want.
  • F7: Toggle mode to scroll through history. Once in this mode, use cursor keys or Page Up or Page Down to scroll through history. To search back or forward in the history, use slash or question mark (just like in Vim). Press Enter to get out of this mode.
  • F8: Rename the current window. The name is shown at the bottom of each window. This is very useful to distinguish work you are doing in each window.
  • Ctrl + F2: Create a vertical split window
  • Shift + F2: Create a horizontal split window
  • Shift + F3 or Shift + F4: Switch forward and backward between split windows
  • F9: Change the settings using its inbuilt Curses GUI dialog.
  • Alt + F12: Toggle mouse support. More details in this post.
  • Shift + F12: Toggle function keys. This is useful when you want to use the function keys in a terminal application.

You can see these keyboard shortcuts defined in the /usr/share/byobu/keybindings/f-keys.tmux file.

Tried with: Byobu 5.77 and Ubuntu 14.04

Advertisements

2 thoughts on “Byobu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s