Forrest logo
back to the tmux tool

tmux:tldr:3cb90

tmux: Kill a session by name.
$ tmux kill-session -t ${name}
try on your machine

The tmux kill-session -t ${name} command is used to terminate a specific session in the tmux terminal multiplexer.

Here's a breakdown of the components:

  • tmux: This command invokes the tmux tool, which is a terminal multiplexer that allows you to create and manage multiple terminal sessions within a single window.

  • kill-session: This is a tmux command to forcefully terminate a session.

  • -t ${name}: This option specifies the target session to be terminated. ${name} is a placeholder for the specific session name or session ID you want to kill. You should replace ${name} with the actual name or ID of the target session you want to terminate.

Overall, the command tmux kill-session -t ${name} terminates the specified tmux session, ensuring all processes and windows within that session are forcefully closed.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tmux tool