SlideShare a Scribd company logo
1 of 29
Download to read offline
tmux 
v1.9a 
Terminal Awsomeness
Before we begin 
Phones quiet please 
Thank you
Today's subjects... 
What is tmux? 
How to control tmux 
Demo of significant features 
Questions from you
Random bits about me 
I'm a long time Unix consultant 
I spend alot of time in terminals 
I enjoy using good tools 
I like to share good ideas
What is tmux? 
tmux is a terminal multiplexer 
"it enables a number of terminals to be created, 
accessed, and controlled from a single screen." 
Indeed... like GNU screen.
What it can look like
Why use it? 
Session persistence 
One connection, multiple sessions 
Power... more on that in a minute
What makes it special? 
easily and extensively configurable 
powerful tiling 
scripted control 
good documentation 
actively maintained 
clean code --> easy to contribute 
can be found by Google et al
How does it work? 
client --> server --> sessions --> windows --> panes
Time for action 
Controlling tmux 
and 
Basic window management
Controling tmux - 1/5 
Using the shell 
tmux (=tmux new‐session) 
tmux new‐window 
tmux neww 
tmux list‐windows 
tmux detach‐client 
tmux attach 
(Notice: Tab completion) 
As you can see... very scriptable indeed.
Controling tmux - 2/5 
Using the built in command-prompt 
neww 
split ‐h 
rename‐window 
previous‐window 
(Notice: Command history and tab completion)
Controling tmux - 3/5 
Using shortcuts 
Prefix Key + Commandkey 
C‐a c (create new window) 
C‐a C‐a (goto last window) 
C‐a C‐n (goto next window) 
C‐a C‐p (goto previous window) 
C‐a 2 (jump to window number) 
C‐a ‐ (new horizontal split) 
C‐a , (rename window) 
C‐a d (detach)
Controling tmux - 4/5 
Using the mouse 
Window selection 
Pane selection 
Pane resizing 
Text selection 
Cute? Yes. 
Practical? You decide.
Controling tmux - 5/5 
Using the config files, lots can be customized. 
/etc/tmux.conf 
$HOME/.tmux.conf 
Session intialization 
Layout and colors of all status bar items 
Extending status bar with shell scripts 
Keyboard shortcuts / macros 
General behaviour of tmux 
Too much to mention here
An example config file 
# This is a very simplified tmux config example 
unbind C‐b 
set ‐g prefix C‐a 
bind C‐a last‐window 
bind C‐c new‐window 
bind ‐ split‐window ‐v 
bind  split‐window ‐h 
set ‐g status‐right "#[fg=#44ff44]@#H %d‐%b‐%y %H:%M" 
set ‐g mode‐keys vi 
neww ‐n jodeli
Tiling 
Create / Split 
Navigate 
Custom layouts 
Standard layouts 
Rearrange 
Zoom 
Break / Join 
Delete / Kill 
And last but not least...
Synchronous input!
Buffer manipulation 
vi or emacs control mode 
navigate (always in copy mode) 
search 
select and copy text (line or block) 
past buffer (last or selected) 
save selected buffer 
realtime logging to file
Scripting 
An example: Opening a window with multiple ssh connections 
Open a new window 
Create 4 panes 
Start ssh in each pane 
Log the output of each tile to disk 
Enable synchronized input 
Can also be done on startup to initialize new sessions.
Session sharing 
1. Start a tmux session with a given socket path 
tmux ‐S /tmp/tmux‐shared new 
2. Allow rw access to socket for group/users 
chown 777 /tmp/tmux‐shared 
3. Other user starts 'tmux attach' using the shared socket 
tmux ‐S /tmp/tmux‐shared attach
Monitoring (in)activity 
monitor panes for (in)activity 
monitor panes for strings 
changes on status bar indicates event
Showing tmux state 
There are several commands to show the state of tmux 
info : show server status (clients,sessions,windows,panes) 
show‐options ‐g : show tmux server settings 
show‐options ‐wg : show window settings 
list‐commands : show available tmux commands 
list‐keys : show bound keys 
list‐sessions (ls) 
Start tmux ‐v and get a very detailed client log in the startup dir. 
and much more...
Cygwin 
tmux is nowadays packaged with Cygwin 
and works like a charm.
Documentation 
tmux.sourceforge.net 
tmux FAQ 
many online examples 
man tmux
Summary 
tmux is... 
powerful 
flexible 
well documented 
something you really ought to have in your toolkit
That's all for now. 
This slideshow is available on 
slideshare.net 
NOTE: Do check out the embedded note ("asides") in this reveal.js slideshow.
Questions?
Thank you!

More Related Content

What's hot

Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...
Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...
Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...James Wickett
 
Tmux quick intro
Tmux quick introTmux quick intro
Tmux quick introdantleech
 
Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009Chris Sinjakli
 
Linux Command Line Multitasking
Linux Command Line MultitaskingLinux Command Line Multitasking
Linux Command Line MultitaskingAmr Fawzy
 
20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machineYoussoufou YABRE
 
tmux عدنان الشعلة شرح برنامج
tmux عدنان الشعلة شرح برنامج tmux عدنان الشعلة شرح برنامج
tmux عدنان الشعلة شرح برنامج adnan alshulah
 
ncurses in your hobostove
ncurses in your hobostovencurses in your hobostove
ncurses in your hobostoveSmartLogic
 

What's hot (10)

Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...
Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...
Dev Tooling for your Technohipster Startup using aws, docker, tmux, vim & ope...
 
Tmux quick intro
Tmux quick introTmux quick intro
Tmux quick intro
 
Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009
 
Linux Command Line Multitasking
Linux Command Line MultitaskingLinux Command Line Multitasking
Linux Command Line Multitasking
 
20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine
 
Vim Book
Vim BookVim Book
Vim Book
 
Small Screen Development
Small Screen DevelopmentSmall Screen Development
Small Screen Development
 
tmux عدنان الشعلة شرح برنامج
tmux عدنان الشعلة شرح برنامج tmux عدنان الشعلة شرح برنامج
tmux عدنان الشعلة شرح برنامج
 
Tmux
TmuxTmux
Tmux
 
ncurses in your hobostove
ncurses in your hobostovencurses in your hobostove
ncurses in your hobostove
 

Similar to tmux - An overview of the features of this powerful terminal multiplexer.

2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmux2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmuxMichael Bright
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:wensheng wei
 
Linux for beginners
Linux for beginnersLinux for beginners
Linux for beginnersNitesh Nayal
 
Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Ahmed El-Arabawy
 
Ultimate tools for developers
Ultimate tools for developersUltimate tools for developers
Ultimate tools for developersHarjot Mann
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linuxMazenetsolution
 
Nmon Analysis - Performance monitoring tool for LINUX and AIX
Nmon Analysis - Performance monitoring tool for LINUX and AIXNmon Analysis - Performance monitoring tool for LINUX and AIX
Nmon Analysis - Performance monitoring tool for LINUX and AIXGanesh Mandala
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationJacobMenke1
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Linelifeit
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7VCP Muthukrishna
 
Aucklug slides - desktop tips and tricks
Aucklug slides - desktop tips and tricksAucklug slides - desktop tips and tricks
Aucklug slides - desktop tips and tricksGlen Ogilvie
 

Similar to tmux - An overview of the features of this powerful terminal multiplexer. (20)

2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmux2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmux
 
screen and tmux
screen and tmuxscreen and tmux
screen and tmux
 
My tmux experience
My tmux experienceMy tmux experience
My tmux experience
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 
2004 ugm-tips-tricks
2004 ugm-tips-tricks2004 ugm-tips-tricks
2004 ugm-tips-tricks
 
Linux for beginners
Linux for beginnersLinux for beginners
Linux for beginners
 
Unix t2
Unix t2Unix t2
Unix t2
 
Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals
 
Ultimate tools for developers
Ultimate tools for developersUltimate tools for developers
Ultimate tools for developers
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linux
 
Nmon Analysis - Performance monitoring tool for LINUX and AIX
Nmon Analysis - Performance monitoring tool for LINUX and AIXNmon Analysis - Performance monitoring tool for LINUX and AIX
Nmon Analysis - Performance monitoring tool for LINUX and AIX
 
Linux lecture5
Linux lecture5Linux lecture5
Linux lecture5
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup Presentation
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
15 - Concurrency in VisualWorks
15 - Concurrency in VisualWorks15 - Concurrency in VisualWorks
15 - Concurrency in VisualWorks
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
Aucklug slides - desktop tips and tricks
Aucklug slides - desktop tips and tricksAucklug slides - desktop tips and tricks
Aucklug slides - desktop tips and tricks
 
Putty
PuttyPutty
Putty
 
Toby3
Toby3Toby3
Toby3
 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

tmux - An overview of the features of this powerful terminal multiplexer.

  • 1. tmux v1.9a Terminal Awsomeness
  • 2. Before we begin Phones quiet please Thank you
  • 3. Today's subjects... What is tmux? How to control tmux Demo of significant features Questions from you
  • 4. Random bits about me I'm a long time Unix consultant I spend alot of time in terminals I enjoy using good tools I like to share good ideas
  • 5. What is tmux? tmux is a terminal multiplexer "it enables a number of terminals to be created, accessed, and controlled from a single screen." Indeed... like GNU screen.
  • 6. What it can look like
  • 7. Why use it? Session persistence One connection, multiple sessions Power... more on that in a minute
  • 8. What makes it special? easily and extensively configurable powerful tiling scripted control good documentation actively maintained clean code --> easy to contribute can be found by Google et al
  • 9. How does it work? client --> server --> sessions --> windows --> panes
  • 10. Time for action Controlling tmux and Basic window management
  • 11. Controling tmux - 1/5 Using the shell tmux (=tmux new‐session) tmux new‐window tmux neww tmux list‐windows tmux detach‐client tmux attach (Notice: Tab completion) As you can see... very scriptable indeed.
  • 12. Controling tmux - 2/5 Using the built in command-prompt neww split ‐h rename‐window previous‐window (Notice: Command history and tab completion)
  • 13. Controling tmux - 3/5 Using shortcuts Prefix Key + Commandkey C‐a c (create new window) C‐a C‐a (goto last window) C‐a C‐n (goto next window) C‐a C‐p (goto previous window) C‐a 2 (jump to window number) C‐a ‐ (new horizontal split) C‐a , (rename window) C‐a d (detach)
  • 14. Controling tmux - 4/5 Using the mouse Window selection Pane selection Pane resizing Text selection Cute? Yes. Practical? You decide.
  • 15. Controling tmux - 5/5 Using the config files, lots can be customized. /etc/tmux.conf $HOME/.tmux.conf Session intialization Layout and colors of all status bar items Extending status bar with shell scripts Keyboard shortcuts / macros General behaviour of tmux Too much to mention here
  • 16. An example config file # This is a very simplified tmux config example unbind C‐b set ‐g prefix C‐a bind C‐a last‐window bind C‐c new‐window bind ‐ split‐window ‐v bind split‐window ‐h set ‐g status‐right "#[fg=#44ff44]@#H %d‐%b‐%y %H:%M" set ‐g mode‐keys vi neww ‐n jodeli
  • 17. Tiling Create / Split Navigate Custom layouts Standard layouts Rearrange Zoom Break / Join Delete / Kill And last but not least...
  • 19. Buffer manipulation vi or emacs control mode navigate (always in copy mode) search select and copy text (line or block) past buffer (last or selected) save selected buffer realtime logging to file
  • 20. Scripting An example: Opening a window with multiple ssh connections Open a new window Create 4 panes Start ssh in each pane Log the output of each tile to disk Enable synchronized input Can also be done on startup to initialize new sessions.
  • 21. Session sharing 1. Start a tmux session with a given socket path tmux ‐S /tmp/tmux‐shared new 2. Allow rw access to socket for group/users chown 777 /tmp/tmux‐shared 3. Other user starts 'tmux attach' using the shared socket tmux ‐S /tmp/tmux‐shared attach
  • 22. Monitoring (in)activity monitor panes for (in)activity monitor panes for strings changes on status bar indicates event
  • 23. Showing tmux state There are several commands to show the state of tmux info : show server status (clients,sessions,windows,panes) show‐options ‐g : show tmux server settings show‐options ‐wg : show window settings list‐commands : show available tmux commands list‐keys : show bound keys list‐sessions (ls) Start tmux ‐v and get a very detailed client log in the startup dir. and much more...
  • 24. Cygwin tmux is nowadays packaged with Cygwin and works like a charm.
  • 25. Documentation tmux.sourceforge.net tmux FAQ many online examples man tmux
  • 26. Summary tmux is... powerful flexible well documented something you really ought to have in your toolkit
  • 27. That's all for now. This slideshow is available on slideshare.net NOTE: Do check out the embedded note ("asides") in this reveal.js slideshow.