Skip to content
DBDeependra Bhatta~/notes

TMUX Complete Cheatsheet

Session Commands Command / Shortcut Description tmux Start a new session. tmux new -s [name] Create new session. tmux attach Attach to latest session. tmux detach Detach session. tmux a -t [name]…

· updated · 2 min read
ON THIS PAGE

Session Commands

Command / ShortcutDescription
tmuxStart a new session.
tmux new -s [name]Create new session.
tmux attachAttach to latest session.
tmux detachDetach session.
tmux a -t [name]Attach specific session.
tmux lsList sessions.
tmux kill-session -t [name]Kill session.

Window Shortcuts (CTRL+b)

Command / ShortcutDescription
cCreate window.
,Rename window.
wList windows.
&Kill window.
n / pNext / Previous window.
0..9Switch window.

Pane Shortcuts (CTRL+b)

Command / ShortcutDescription
%Vertical split.
“Horizontal split.
xClose pane.
oSwitch panes.
zZoom pane.
{ / }Move pane left/right.
SPACECycle layouts.

Copy Mode

Command / ShortcutDescription
[Enter copy mode.
]Paste.
SPACEStart selection.
ENTERCopy selection.
q / ESCExit copy mode.
PgUp/PgDnScroll pages.

Terminal-Type Commands

Command / ShortcutDescription
tmux setw synchronize-panes onEnable broadcast (same input to all panes).
tmux setw synchronize-panes offDisable broadcast.
tmux set -g mouse onEnable mouse mode.
tmux set -g history-limit 10000Increase scrollback.
tmux source-file ~/.tmux.confReload config.
  • LVM in linux

    Problems with standard partation There are some problems when working with hard disks and standard aprtiations. Consider a system with a small and a large hard disk drive, partioned. Suppose the…

  • Apache web server

    The Apache HTTP server, commonly known as Apache is a free and open-source web server, that delivers web content through the internet. As open-source software, its original source code is freely…

  • Shell Scripting

    It is a way to automate tasks by writing a series of commands in a text file called script that Linux shell can execute. It’s like creating a ‘to do list’ for your computer to follow step by step…