- Published on
Kill a Tmux Session
Tmux is one of the most useful tool when it comes to using a linux terminal.
Tmux is a terminal multiplexer, it allows a user to access multiple terminals (or windows), each running a separate program, while providing a single screen to work on. Tmux is useful for running more than one command-line program at the same time, increasing productivity and the way you work.
Let's look at how to kill a tmux session by its name.
Kill a tmux session
You can kill a tmux session by running the tmux kill-session
command.
To find the list of sessions that are available you can run the comming tmux ls
. Pick the name of the session session_name
from the output of tmux ls
and then to kill the session run the tmux kill-ses
command-
$ tmux kill-ses -t session_name
or use tmux kill-session
command
$ tmux kill-session -t session_name
You can also create a tmux session within a tmux session, which will help you create a new session without quitting the existing session.
I hope this tutorial for creating a new tmux session was useful. You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.