SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt? (10)

Monte-carlo sim pricing EU call
Monte-carlo sim pricing EU callMonte-carlo sim pricing EU call
Monte-carlo sim pricing EU call
 
PYTHON. AM CALL Pricing Trees
PYTHON. AM CALL Pricing TreesPYTHON. AM CALL Pricing Trees
PYTHON. AM CALL Pricing Trees
 
Vcs9
Vcs9Vcs9
Vcs9
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
Rubizza #1 | Special Lecture. Vim
Rubizza #1 | Special Lecture. Vim Rubizza #1 | Special Lecture. Vim
Rubizza #1 | Special Lecture. Vim
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesignerHTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesigner
 
Vi editor commands
Vi editor commandsVi editor commands
Vi editor commands
 
Vi Cheat Sheet
Vi Cheat SheetVi Cheat Sheet
Vi Cheat Sheet
 
Introduction to Processing and creative coding
Introduction to Processing and creative codingIntroduction to Processing and creative coding
Introduction to Processing and creative coding
 
C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...
 

Ähnlich wie Tmux cheatsheet (8)

crontab_unified.pdf
crontab_unified.pdfcrontab_unified.pdf
crontab_unified.pdf
 
GNU Emacs Reference Card.pdf
GNU Emacs Reference Card.pdfGNU Emacs Reference Card.pdf
GNU Emacs Reference Card.pdf
 
Linux Command Line Multitasking
Linux Command Line MultitaskingLinux Command Line Multitasking
Linux Command Line Multitasking
 
tmux
tmuxtmux
tmux
 
Vim Hacks (OSSF)
Vim Hacks (OSSF)Vim Hacks (OSSF)
Vim Hacks (OSSF)
 
tmux - An overview of the features of this powerful terminal multiplexer.
tmux - An overview of the features of this powerful terminal multiplexer.tmux - An overview of the features of this powerful terminal multiplexer.
tmux - An overview of the features of this powerful terminal multiplexer.
 
Easy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetEasy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- Cheatsheet
 
screen and tmux
screen and tmuxscreen and tmux
screen and tmux
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

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