· 1 min read

tmux Shortcut Notes

This article was auto-translated from Chinese. Some nuances may be lost in translation.

I had always been used to switching tabs directly using iTerm2’s tab feature in the terminal. While there was nothing really wrong with that, ever since discovering how useful tmux is, I’ve moved all my terminal operations over to tmux. tmux revolves around a few core concepts: session, window, and panel. Each window can contain multiple panels, and each panel can access different sessions separately, which is very convenient when working on remote servers.

Its shortcut philosophy is quite unique—everything starts with <C-b> as the prefix key, combined with other keystrokes. This post serves as a quick record of some shortcuts I frequently use:

Function
tmux new -s nameCreate a new session
tmux a -t nametmux preserves sessions when the terminal closes; you can use attach to restore the session
tmux lsList current sessions
cCreate window
&kill window
.name window
%Split vertically (within the same screen)
“Split horizontally (within the same screen)
xkill panel
,Rename panel
zTemporarily hide other panels

Related Posts

Explore Other Topics