TMUX

TMUX is a terminal multiplier that allows you to manage multiple terminal sessions within a single terminal window or over a remote SSH connection. You can create, switch between, and detach and reattach to different terminal sessions, making it an excellent tool for working with others on an engagement from TMUX.

Here are some TMUX commands to start/attach to/kill TMUX sessions:

Linux
tmux <command> <flags>

tmux                            Start a TMUX Session
tmux attach                     Attach To The First TMUX Session
tmux ls                         List All TMUX Sessions
tmux new -s weelee              Start a TMUX Session Named Weelee
tmux attach -t weelee           Attach To The TMUX Session Named Weelee
tmux kill-session -t weelee     Kill The TMUX Session Named Weelee

When inside of TMUX, the default key bind for TMUX commands is Ctrl + B followed by one of the following:

If you're like most people new to TMUX, this is a crap ton of keybinds to remember! Luckily, TMUX allows you to create custom TMUX configurations that will enable you to use your mouse to do some of the actions above.

I'll share my tmux.conf file that I partly stole from a friend but with a few changes and subjectively prettier colors :)

circle-info

tmux.conf should be placed in ~/tmux.conf if you want the configuration to only be for a specific user and in /etc/tmux.conf if you want it to be applied globally.

file-download
1KB

Last updated