Skip to main content

tmux

It is highly recommended that you start the Sliver Server through tmux. Tmux is a terminal multiplexer which allows you to create pseudo terminals from a single terminal. It also segregates the programs from the main terminal, which protects the programs from accidental disconnects.

You can disconnect from a tmux session and all of the programs will continue to run in the background. Then, you can come back and reconnect to the tmux session and pick up where you left off before. Below are some very basic commands to use tmux. It is very capable, and should be looked at in depth.

By default, tmux uses keyboard shortcuts starting with a prefix combination. The prefix is <ctrl><b>.

Descriptiontmux Command
Start new sessiontmux
Detach from session<ctrl><b> d
Quit session<ctrl><b> &
List active sessions<ctrl><b> ls
Attach to active sessiontmux a -t 0
Attach - if only one sessiontmux a
Create new pseudo terminal (pane)<ctrl><b> c
Close a pane in the session<ctrl><b> x
Move to next pane<ctrl><b> n
Move to previous pane<ctrl><b> p
Split window horizontally<ctrl><b> %
Split window vertically<ctrl><b> "

A great cheat sheet is provided by opensource.com.

https://opensource.com/sites/default/files/gated-content/osdc_cheatsheet-tmux-2021.6.25.pdf