SlideShare a Scribd company logo
Tmux Cheatsheet
A Tmux Session
Help
C-b ?
see all key bindings
tmux list-commands
list tmux sub commands
man tmux
tmux manual
Session Management
tmux new -s session_name
creates a new tmux session named session_name
tmux attach -t session_name
attaches to an existing tmux session named
session_name
tmux attach -t session_name -r
attaches in readonly mode
tmux switch -t session_name
switches to an existing session named session_name
tmux detach (C-b d)
detach the currently attached session
tmux list-sessions
lists existing tmux sessions
A session can have many windows. And the session can be shared by multiple clients, the screen is
synchronized among all clients.
Window Management
A window runs a command (shell by default)
C-b c
creates a new shell window
tmux new-window vi
creates a new window to run vi
C-b ,
change window name
C-b p
previous window
C-b n
next window
C-b &
kill window, or just C-d to exit shell, :q to exit vi
C-b #
# is digit from 0 to 9: choose window #
C-b w
choose window from menu
In menu:
C-p previous line
C-n next line
ESC cancel
Enter confirm selection
Select Window Menu
Pane Management
C-b “
Create new pane under current pane
C-b %
Create new pane on the right of current pane
tmux split-window -h vi
Split horizontal and run vi in it
C-b Left, C-b Right, C-b Up, C-b Down
Go to pane by direction
C-b C-Left, C-b C-Right, C-b C-Up, C-b C-Down
Resize the pane
C-b M-Left, C-b M-Right, C-b M-Up, C-b M-Down
Resize the pane in 5x steps
A window can be split into panes. By default new window has only one pane occupying all spaces.
Window/Pane History
C-p, C-n
move by line
C-f, C-b
move by char
Page Up, Page Down
previous window
C-s
search forward, ENTER to submit search
C-r
seasrch backward, ENTER to submit search
n
continue last search forward
p
continue last search backward
set-window-option -g mode-keys vi
use vi binding in copy mode
C-b [ start copy mode to scroll back, use following keybinding in copy mode
ESC exit copy mode
Copy Mode

More Related Content

What's hot (10)

DOCX
Monte-carlo sim pricing EU call
Tianqi Huang, CFA
 
DOCX
PYTHON. AM CALL Pricing Trees
Tianqi Huang, CFA
 
DOCX
New microsoft office word document
Syed Umair
 
PDF
Rubizza #1 | Special Lecture. Vim
Rubizza
 
PDF
HTML5 e Css3 - 4 | WebMaster & WebDesigner
Matteo Magni
 
PDF
Vi editor commands
Femi Adeyemi
 
PDF
Vi Cheat Sheet
Loiane Groner
 
PPTX
Introduction to Processing and creative coding
Jerome Herr
 
PPTX
C programming on the determination of shear force, bending moment, shear stre...
Mamun Mehedee
 
Monte-carlo sim pricing EU call
Tianqi Huang, CFA
 
PYTHON. AM CALL Pricing Trees
Tianqi Huang, CFA
 
New microsoft office word document
Syed Umair
 
Rubizza #1 | Special Lecture. Vim
Rubizza
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
Matteo Magni
 
Vi editor commands
Femi Adeyemi
 
Vi Cheat Sheet
Loiane Groner
 
Introduction to Processing and creative coding
Jerome Herr
 
C programming on the determination of shear force, bending moment, shear stre...
Mamun Mehedee
 

Similar to Tmux cheatsheet (10)

PDF
crontab_unified.pdf
Lorenzo Santos Virosta
 
PPTX
Tmux: sincere love for terminal sessions
Tony Nazarov
 
PDF
GNU Emacs Reference Card.pdf
SergioLoaiza11
 
PDF
Linux Command Line Multitasking
Amr Fawzy
 
PDF
tmux
Jason Lotito
 
PDF
Vim Hacks (OSSF)
Lin Yo-An
 
PDF
tmux - An overview of the features of this powerful terminal multiplexer.
jhalfmoon
 
PDF
Easy Blogging With Emacs -- Cheatsheet
Dashamir Hoxha
 
PDF
screen and tmux
Hsi-Kai Wang
 
crontab_unified.pdf
Lorenzo Santos Virosta
 
Tmux: sincere love for terminal sessions
Tony Nazarov
 
GNU Emacs Reference Card.pdf
SergioLoaiza11
 
Linux Command Line Multitasking
Amr Fawzy
 
Vim Hacks (OSSF)
Lin Yo-An
 
tmux - An overview of the features of this powerful terminal multiplexer.
jhalfmoon
 
Easy Blogging With Emacs -- Cheatsheet
Dashamir Hoxha
 
screen and tmux
Hsi-Kai Wang
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Ad

Tmux cheatsheet

  • 3. Help C-b ? see all key bindings tmux list-commands list tmux sub commands man tmux tmux manual
  • 4. Session Management tmux new -s session_name creates a new tmux session named session_name tmux attach -t session_name attaches to an existing tmux session named session_name tmux attach -t session_name -r attaches in readonly mode tmux switch -t session_name switches to an existing session named session_name tmux detach (C-b d) detach the currently attached session tmux list-sessions lists existing tmux sessions A session can have many windows. And the session can be shared by multiple clients, the screen is synchronized among all clients.
  • 5. Window Management A window runs a command (shell by default) C-b c creates a new shell window tmux new-window vi creates a new window to run vi C-b , change window name C-b p previous window C-b n next window C-b & kill window, or just C-d to exit shell, :q to exit vi C-b # # is digit from 0 to 9: choose window # C-b w choose window from menu In menu: C-p previous line C-n next line ESC cancel Enter confirm selection
  • 7. Pane Management C-b “ Create new pane under current pane C-b % Create new pane on the right of current pane tmux split-window -h vi Split horizontal and run vi in it C-b Left, C-b Right, C-b Up, C-b Down Go to pane by direction C-b C-Left, C-b C-Right, C-b C-Up, C-b C-Down Resize the pane C-b M-Left, C-b M-Right, C-b M-Up, C-b M-Down Resize the pane in 5x steps A window can be split into panes. By default new window has only one pane occupying all spaces.
  • 8. Window/Pane History C-p, C-n move by line C-f, C-b move by char Page Up, Page Down previous window C-s search forward, ENTER to submit search C-r seasrch backward, ENTER to submit search n continue last search forward p continue last search backward set-window-option -g mode-keys vi use vi binding in copy mode C-b [ start copy mode to scroll back, use following keybinding in copy mode ESC exit copy mode