LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Docs » tmux

This is an old revision of the document!


tmux

tmux is a terminal multiplexer. It lets you switch easily between several programs in once terminal, detach them, and reattach them to a different terminal.

In other words, you can run code in the background AND run/manage multiple terminal-based tasks simultaneously.

Start a new 'tmux' session

tmux new -s session_name

Detach from a session

Ctrl+b d

(Hold control tap b, release control, tap d)

Don't worry! This won't kill the session!

Reattach to a session

tmux attach -t session_name

Multiple tmux windows per session

You can also run scripts in multiple windows for a session.

Ctrl+b c Creates a new window

Ctrl+b 0 Goes to first window

Ctrl+b 1 Goes to second window

List existing tmux sessions

tmux ls

End tmux session

Ctrl+b & or

 tmux kill-window -t <session_name>:<window_number> 

Please see https://github.com/tmux/tmux/wiki for more information and other options for tmux!

Previous Next