Wednesday, 8 February 2023

What is the key combination to exit tmux?

Tmux is a terminal multiplexer that allows users to work in multiple virtual terminals at the same time. It is a popular tool for developers and system administrators but many new users may not be familiar with its key combinations. One of the most important key combinations to know when working with tmux is the one to exit it.

The key combination to exit tmux is ctrl + b, d. This combination of keys should be entered in the terminal command line before you will be able to leave tmux and return back to your normal CLI session.

The first key combination "ctrl + b" is known as a prefix in tmux; it's what tells tmux that you are about to enter a command. The second part of the combination "d" stands for detach and allows you to exit out of tmux without closing or stopping any work or sessions currently running within it.

To re-enter into a session that was previously opened in tmux, another beneficial key combination is ctrl + b, s. This happens to stand for "scroll" and takes you back into your last running session inside of Tmux. It's easier on our fingers compared to typing out "tmux attach" after every time we want to re-enter back into an original Tmux session!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.