TMUX Tutorial
TMUX is a great tool to save time while navigating through your linux terminal.
Not only you can save time while navigating from one tab to other but also keep everything organized and it keeps the processes in a session alive irrespective of them being detached.
Usage
First we need to install TMUX
I already have it installed
Entering TMUX
Simply typing TMUX creates a session for us
and you automatically enter a session
Dividing the terminal
We can divide the terminal horizontally by
Pressing Ctrl + b followed by Shift + %
Similarly we can create a vertical terminal by
Ctrl + b followed by “
Typing exit deletes the new terminal
Navigating in-between 2 terminals
Get Wadshah’s stories in your inbox
Join Medium for free to get updates from this writer.
Ctrl + b followed by the navigation key lets you switch between two panels
Creating new window
Pressing Ctrl + b followed by c creates a new tab
Pressing Ctrl + b followed by 0 leads you back to first tab
the * next to the session name tells the current session you are in
Renaming a window
Pressing Ctrl + b followed by , renames a window
Sessions
This is the best part about TMUX
The processes in the session do not die even if the created session is exited
Detaching a session
Pressing Ctrl + b followed by d detaches a session
Using tmux ls shows the list of detached sessions
Going back to the session
tmux attach -t [session_name]
leads us back to the session without any processes being killed





