wiki
Getting startedGuidesFAQ
1.0.0
1.0.0
  • b-it-bots wiki
  • @home
    • Getting started
      • First steps
      • Setting up your development environment
        • Configuring your editor
        • Using ssh
      • Adding your first contribution
    • Tutorials
      • Architecture
    • Guides
      • git
        • Making good commits
        • Branching model
        • Adding git aliases to make your life easier
        • Creating a release
      • SSH
      • ROS
        • Creating a new package
          • Creating a new node
        • Creating a new message, service or action
        • Testing in ROS
        • Linting
      • Coding conventions
        • C++
        • Python
      • Toolkit
        • CLion
        • Atom configuration
        • Using vim
        • TMUX - Terminal Multiplexer
    • Resources
    • FAQ
      • git
  • @work
    • 2018-05-06-navigation-atwork
    • 2018-05-06-simulation_mapping
    • How to use the RealSense2 camera
    • Getting the classifier from a data set
Powered by GitBook
On this page
  • Full Documentation
  • Why tmux
  • Essential Usage
  • In the terminal
  • Within a session
  • (More) Advanced Usage
  • See also

Was this helpful?

  1. @home
  2. Guides
  3. Toolkit

TMUX - Terminal Multiplexer

PreviousUsing vimNextResources

Last updated 4 years ago

Was this helpful?

Full Documentation

Why tmux

  • Allow starting process in ssh sessions that continue to run when the user logsout

  • Open the same session on multiple computers

  • Hide irrelevant sessions to unclutter the terminal

  • and many other things...

Essential Usage

In the terminal

  • Start a new session: tmux new -s <session_name>

  • List sessions: tmux ls

  • Attach to an existing session: tmux attach -t <session_name>

Within a session

The default bind key for tmux is C-b (Ctrl+b)

  • C-b + d: detach (session run as background)

  • C-d : exit (kill session), typing exit on all terminals also work

  • C-b + %: vertical split

  • C-b + ": horizontal split

  • C-b + :: enter command

  • C-b + [: enter scroll/copy mode

  • Esc or q: exit scroll/copy mode

(More) Advanced Usage

An user-specific config file for tmux should be located at ~/.tmux.conf

  • Enable scrolling by default: enter following command or add it to config file:

    • version 2.1 and up: set -g mouse on

    • older versions: set -g mode-mouse on

See also

Project page
Manual Page
https://egghead.io/courses/wrangle-your-terminal-with-tmux