Basic TMUX tutorial & cheatsheet

  Рет қаралды 4,575

The Modern Coder

The Modern Coder

Күн бұрын

Learn TMUX in minutes with this straight-to-the-point tutorial.
TMUX is a screen multiplexer that allows you to create multiple, concurrent command prompts in a single persistent terminal session. Many TMUX tutorials are extremely detailed, but this one is simple and easy. In this video tutorial I'll demonstrate how to create TMUX sessions, add or remove TMUX windows, and split TMUX panes. Along with this demonstration of TMUX features, I'll show a simple cheatsheet to get you up and running. Lastly, I talk through how TMUX can be used with SSH sessions to help mitigate SSH disconnections from impacting developer productivity.
TMUX CHEATSHEET: www.themoderncoder.com/simple...
3 ESSENTIAL TMUX CUSTOMIZATIONS: www.themoderncoder.com/basic-...
CHAPTERS
0:00 Intro & TMUX cheatsheet
0:20 Create a TMUX session
0:37 Split TMUX panes
0:59 Maximize TMUX pane
1:16 Cycle pane focus
1:43 Close a TMUX pane
1:57 Create a TMUX window
2:26 Rename a TMUX window
2:46 Close a TMUX window
2:55 Detach a TMUX session
3:24 Re-attach a TMUX session
3:33 SSH with TMUX
3:46 TMUX cheatsheet
4:04 Additional TMUX resources
MY TECH
2020 M1 MacBook Air (I have the 512GB variant): amzn.to/3TTIBsE
AirPods Pro: amzn.to/3sRLUo5
Chair: amzn.to/3zJI9Fa
Gaming headset: amzn.to/3zwbT8i
Headphones (newer model): amzn.to/3Ub5reT
Keyboard: amzn.to/3FOOOC7
Mouse: amzn.to/3WhMFV9
Monitor: www.dell.com/en-us/work/shop/...
Monitor arm (newer model): amzn.to/3gXnlUa
Webcam: amzn.to/3zxxwp0
TECH ACCESSORIES
Laptop stand: amzn.to/3NuyqZ5
Mouse pad/mat: amzn.to/3U9QFVO
KVM switch: amzn.to/3gZmpP0
PC case: amzn.to/3Fx4Hg5
Under desk drawer: amzn.to/3WloFAo
VIDEO GEAR
Camera: amzn.to/3WkbiRe
Lens: amzn.to/3zxiTC4
Microphone: amzn.to/3SSUoWE
Main key light: amzn.to/3WhZbny
Secondary light: amzn.to/3fpRefx
As an Amazon Associate I earn from qualifying purchases
MUSIC CREDITS
Song: "Confidence" by Oakvale of Albion
Music from Uppbeat (free for Creators!):
uppbeat.io/t/oakvale-of-albio...
License code: 3RIJFHMPMJQIYFVI
ICON CREDITS
Laptop icon: Perrine Vin from Noun Project
Server icon: Gofficon from Noun Project
ABOUT ME
An experienced tech professional with experience including software engineering management, and software engineering. Formerly at Amazon for over 6 years, and currently living in NYC.
FOLLOW
Blog: www.themoderncoder.com
Twitter: / themoderncoder
#tmux #linux #programming

Пікірлер: 13
@NicholasShanks
@NicholasShanks Ай бұрын
1:04: "And that maximises the pain" - I feel it bro.
@themoderncoder
@themoderncoder Ай бұрын
lol
@jeffp5138
@jeffp5138 Жыл бұрын
Great video, I'm not a tmux fan but that's all that's available at a few places I work. This quick tutorial will make things easier.
@themoderncoder
@themoderncoder Жыл бұрын
Awesome, thanks for leaving a comment, glad it helped
@blanky_nap
@blanky_nap Жыл бұрын
tmux advanced video would be great!
@themoderncoder
@themoderncoder Жыл бұрын
Anything in particular you’d like to see covered?
@blanky_nap
@blanky_nap Жыл бұрын
@@themoderncoder I have read tmux allows two different users to attach to the same session and work in parallel on the same file. Is great feature for example in case of pair programming
@themoderncoder
@themoderncoder Жыл бұрын
@@blanky_nap huh I have heard of that - could be a nice short follow up
@aion3646
@aion3646 Жыл бұрын
tmux command runs let's say database backup but if suddenly any error comes and terminates session with error code is it possible to reconnect without manual intervention ? I can share screenshots as well
@themoderncoder
@themoderncoder Жыл бұрын
Processes running inside TMUX (like the web server I showed in the video), won't terminate the TMUX session if they crash. They'll just crash and you can re-attach the TMUX session to see the error.
@aion3646
@aion3646 Жыл бұрын
@@themoderncoder after seeing errors is there any tmux command that re-run previous command line that crashed start automatically?
@Vogel42
@Vogel42 Жыл бұрын
ctrl+b z stands for "zen" or "zoom".
@themoderncoder
@themoderncoder Жыл бұрын
oh cool, never knew!