Spin up your next project with Linode: ntck.co/linode -You get a $100 Credit good for 60 days as a new user! I just started using Tmux……it’s amazing! If you use a terminal or CLI in any capacity Tmux will 10x your productivity in 10 seconds. From creating multiple panes and windows with ease to leaving your terminal sessions active as you switch between machines Tmux is a must have in your toolbelt. In this video, I’ll show you how to get started with Tmux…which is REALLY easy. Then we’ll jump into how to actually use Tmux, which can be kind of complex at first but becomes easier as you practice. We’ll cover how to install Tmux, use Tmux and how to master all of the hotkeys. Video Stuff --------------------------------------------------- Tmux Cheatsheet (all the commands): tmuxcheatsheet.com/ 🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy **Sponsored by Linode Cloud Computing from Akamai
@@aliega-studios His videos are sometimes sponsored by NordVPN and Hostinger. He sells merch, coffee and merch. He also has a Patreon. We get great content with he has a nice side-hustle. Do you have a problem with the freedom of enterprise?
What I love about your videos is that you get right to the point and tell me why I want to learn what you're about to show me and then you jump right into using it, showing me how to use it instead of telling me how to use it. Efficiency at its finest.
You are the one (maybe the only one), who never disappoints to be the guy who exactly show us how to do something. Like, I mean, literally "how" to do something. thank you so much.
Great Video Chuck! I used to work for a company where an employee would try everything for their ssh-session to stay alive, whilst they were dumping a database. They were astonished when I just tmux'd in, started the dump, detached, logged out of ssh and went home lol! Imagine how many working hours have been wasted like this, as it happened approx about an hour every workday. I used "screen" back then, but tmux is the way to go! If you want to close your panes/windows/sessions, you can just use control+d (or C-d if you like this notation) which perfoms a simple "exit" (or disconnect / logoff) on the current highlighted pane. This is not a tmux command, this works for any (bash) shell. Happy new year coffee-fellows!
I learned about the 'screen' command years ago, solely for the purpose of running a script or command while I'm out on the road and needing to not kill it before traveling to a new destination. But then I NEVER realized the command had all of these functions and capabilities until I started to watch this video. As soon as I heard you need to 'disconnect from the session' it dawned on me... "This sounds awfully familiar to that 'screen' command" I immediately went to the man pages for 'screen' and discovered... This 'tmux' is just utilizing 'screen' and making it WAY easier to navigate and control. Thank you for simplifying this for us, because I don't think I would've made this discovery without the quick and easy-to-follow video.
I work in configuring passive monitoring telecommunication probes running Linux primarily, and in the last year, my company has incorporated Tmux into the OS. This 15 minute explanation is much better than 2 hour presentation on how to use Tmux. Amazing!
I used screen for years. It does basically the same as tmux, however, tmux does look cool, easier and more powerful. Some basic commands. apt install -y screen screen -S bob to name a session Ctrl+a d to detach screen -ls to list sessions screen -r bob to reattach type exit to kill the current session
Also great for when you want to send commands to multiple panes, for instance to 20 ssh or serial connections to switches. Use 'set synchronize-panes' to start sending your keys to all panes in the current window
I’m really surprised this wasn’t covered. It’s what got me into tmux when I was learning kubernetes and for educational reasons, built my cluster the hard way from scratch. Using tmux allowed me to have 3 panes each sshed to a node and then I could send all keyboard commands to every pane simultaneously. That for me is the killer feature of tmux.
@@gerardoriveroll7346 For me its superpowers are its main purpose; working in sessions and panes and the ability to keep sessions running. I work almost exclusively in Tmux and basically use it as an extention to my terminal emulator. For instance working with Tmux panes instead of opening a terminal in Neovim.
Not saying it's better or worse but for the record, this can also be done with "cssh" (or "clusterssh") but that's exclusively for that, of course with tmux we can do other things :)
Your videos are really helpful and have taught me a lot in a simplified manner. Learning from you is not only enjoyable but also makes things much better. Thanks a bunch, Chuck! Good Video!
Hey, I know you probably won't read this, but will you make a new episode of the learn Python series? It's my favorite one and the reason I subscribed actually.
@@NetworkChuckplease make python I am kind of like a person who didn’t follow things so I don’t know stuff but know higher stuff / etc so please complete it
Very timely Chuck! I was just setting up a Terraria server for my friends over the holidays and had to learn Tmux for AWS. I'm sure there's other ways but it worked for me! Thanks!
I've been ignoring Tmux for years, I am still using screen for sessions. I think I may try Tmux now, this video has made it clear that I am using a spoon on steak.
I LOVE YOU FOR THIS. this video is what was the final push for me to try nvim which I couldn't till now because I need other terminals open w/ me. this video is awesome. tmux is awesome. 10/10!
Might use it for keeping related `docker run` sessions together in a terminal window for local dev, or when ssh-ing into a headless box. For the former, it's an organizational thing, and for the latter, it saves me from instantiating multiple ssh sessions. Thanks!
Excellent video, Chuck. It would be worth mentioning the utility named "screen" which existed on UNIX and LINUX for many decades. "screen" was the precursor for modern tool like "tmux".
@@bw1532 I not using it yet, but from the video I would say that I will use the windows split mode in one session and this is not available on screen...
@@bw1532 I've used -- and still use -- screen for decades too, avoiding adopting tmux because I already know screen and figured what was the point since they are basically the same thing. Well, I decide on day to really attempt to learn tmux and man, what a game changer! I now use tmux as my local "terminal window manager" and use screen within tmux on remote systems to help me remember screen key sequences and I prefer screen's log capturing capability to tmux. Manipulating windows and panels is so much easier in tmux than screen. Plus, customizing is way easier once you get the hang of it.
Your teaching style is brilliant! So much valuable information not only explained but also reinforced through practice in a quick and simple 18 minute video! Thanks so much, I just subbed
Perfect timing. Ive dpent this holiday (after family goes to bed 😊) trying out some different work setups. Successfully set up arch, decided I probably had more patience for an Ubuntu install, ditched Windows, learned vim, and am on to p3 tiling window manager. tmux is next. 🎉
I knew this type of thing was out there but I've been avoiding boning up enough to use it. Managing term windows isn't overly painful vs tiling, but tiling inside a single window regardless of the state of my WM, **AND** having tiling capability with no WM at all (over remote term) is an overpoweringly awesome solid dub! Thanks for the crash course, Chuck!
I love it! We’re already using it. I distributed it all over my Linux home systems with ansible together with some other configurations like VIM, ssh config file etc. Using different prefixes for local and remote for nested sessions.
really fun to watch. high quality audio. i don't know crap about linux but i watched this whole video beginning to end (thanks youtube algorithm) and loved it. also well done from an educational perspective. i'm sure this guy's 3.62M subscribers are like, 'yeah, that's just what he does.'
combine with bash scripts for launching certain tmux session setups for certain projects and it's so nice. i just do "p work-react" in my terminal and it opens a tmux session with two windows, one of which is split into 3 panes with various things and the other is a window for neovim text editing. you can get so fast.
nice video Chuck! I think it might be worth mentioning the GNU “screen” command, since screen is another terminal multiplexer that does the same thing, and is included in a bunch of default linux distros. Tmux is definitely better though.
The big plus for me is with tmux you have the option to join with multiple pcs/users. So you have a friend/colleague that's logged into the same server as the same user and he can just attach to your session. That's not as easily possible with screen
I've abused tmux over the years. I've found rebinding to c-a instead of c-b makes it way easier to manage. Also, get your dotfiles in order so you can be familiar across your stations.
I used to use c-a too, but I've found that using C-Space is just as manageable, and it doesn't stray too far off the default key binding, in case you ever need to use vanilla tmux on a random server that you don't have your dotfiles
@JoeyGarcia yes, which is why I use it. Like I said, it's easier to manage. What I left out was it is for me. I'm not the kind of guy that will screen in a tmux session, so both will be familiar to me when I use either.
@@BlizzetaNet makes sense! When I first switched from screen to tmux, it took me a while to get adjusted to it. If you keep switching back and forth, then keeping things consistent is helpful.
Chuck ... Thanks for the TMUX lesson. I will have to memorize some of the CLI for TMUX. I've been using the GUI-based terminator. The detach feature is really good for taking a coffee break.
You know when someone have made a "brand" for them self, was looking for this video but due to the lack of coffee for several days I couldn't for my life remember your name, sorry! SO I put in "cooffee tmux" as search term and your channel and this video was the first hit i got. :) GG Chuck well done.
This is perfect, I'm going through an ethical hacking course and this just made things so much easier! Panes are all I wanted but knowing I can incorporate Vim movements and a copy mode like this is an added bonus! I'm never leaving the terminal now
You explained really well, sometimes people tell me I keep using this "bloated" software and I always tell them It's not bloatware if you take advantage of all the bloat
You've sold me in first 28 seconds, not even lying. It's the issue I have as someone who has some work interruptions and have to proceed to work from laptop on some server provisions or similar. What NONE of these videos so far have mentioned, as I've seen, being able the have THE SAME session from *multiple* devices - that's a seller feature.
I find myself needing to watch each of your videos multiple times, often at a reduced speed (50-75%), because you speak quite rapidly. While I appreciate the educational content, the fast pace makes it challenging for me to absorb the material as effectively as I'd like. However, I continue to learn from your channel as I have yet to find an alternative that matches the quality of your presentations. You truly stand out as exceptional in this field. Thank you for all the knowledge you have shared. If I ever come across a resource that better suits my learning style, I might switch, but you are my best option.😘
⚡ The video introduces the use of t-mo, a terminal multiplexer, which allows for efficient management of terminal sessions. 00:00 ☕ The video demonstrates how to detach and reattach from a session using a simple command, with the example of tracking coffee consumption. 02:40 🔗 The video demonstrates how to use the t-mo command to attach and detach from different sessions in a practice environment. 05:04 🔑 The video explains the use of control B as a prefix key for performing various actions in the Tmux terminal multiplexer. 07:58 ⬆ The video demonstrates how to manipulate active paint and create multiple windows in a design application. 10:29 💻 The video demonstrates how to manage multiple windows and sessions in Linux using the control b w and control b x commands. 13:06 ⌨ The video demonstrates Vim superpowers for efficient terminal usage, emphasizing keyboard shortcuts over mouse usage. 15:46
I love using TMUX. I have 3 main windows on my mine. One for btop, to keep an eye on my hardware usage. One for docker, to see what is currently running, stats and run docker command. And the last one for my Syncthing/rclone logs. You need to talk about plugins. I used resurrect to save and restore my session if I need to reboot. I liked a lot you videos! Keep going! Love from France!
Never seen a single soul fully dived into vim an regretted it. Some people do go back on it, but throught their time using it usually said to have been a great and productive experience. A vim video would be gold man, keep up the good work
You are the man Chuck! This is the video I needed right now. I was literally thinking of setting up tmux for improving my workflow despite using a tiling window manager literally yesterday.
For me, the biggest advantage of tmux is use on remote machines where I need to perform a long running task that cannot be interrupted. I live in a country with an unreliable electric grid, so internet goes out in my building during a blackout. Using tmux ensures that the session is saved, the task still continues if I'm knocked offline and it saves the stdout/stderr buffers so I can see what, if anything went wrong. Of course, the power never, ever goes out when I use it, but nice to know it's there as a safety net.
ever tried to use tmux for persistent "background" tasks? works perfect for the stuff that has no daemon mode! most of the session/window/pane setup can be scripted, some places I use it as a IDE!
@NetworkChuck thank you for this tmux tutorial and all of your videos. Been watching and learning from you for over a year. I have been using tmux for less than a year, but have used it on a weekly basis to manage my Unraid server & Synology NAS to move & cleanup filles, edit configs, etc. I love the ability to leave a tmux session, or multiple tmux sessions running in the background and then return to them at a later date/time and continue where I left off at. Thank you!!!
I mentor a lot of people and one of the questions I get the most is "how did you do that" when zooming in on one pane temporarily. It would be nice if this video included that, scrolling, and searching. Other than that this is a great intro, and I'll def be sharing with people! Something I haven't seen in the comments, for training, attaching to someone else's session on the same machine is great, even if you're both sitting with each other. Also I usually recommend pluggins like 'tmux resurrect' to revive your panes after the machine shuts down.
Currently working on HTB stuff (I am really green) and the instructions that I found were not making the most sense to me. But hearing it out loud instead of reading it made it much easier to understand. This helped me a ton and I am looking forward to using it more.
I used "screen" for a very very long time, but tmux is - next level. To be able to split windows "HotDog style" AND "Hamburger style" is awesome ! Thank you for the video.
I really want to make a shirt that says Always Be Tmux'n. Love tmux. Two things outside of what you showed that I love: Turn a pane into a clock with ctrl+b, t and secondly, zoom into a pane with ctrl+b, z. I use both of those quite a bit and love them.
tmux has been part of my local and remote dev environment for about 7 years already. I use it ALL the time. I even deploy it and my tmux config on every machine I use with Ansible.
One of my work friends pushed me to use tmux, so I'm grateful for the quick tutorial. I run openSUSE Leap in WSL with systemd, so I had to troubleshoot a missing directory after killing Windows Terminal. Turns out the tmpfs needed for tmux gets nuked every time, had to run a command to fix it.
I like your videos, very informative and helpful. Thank you for creating them. As an IT person previous senior MSP tech, currently systems architect and administrator. I have given the advice to beginners, buy a computer with more then 8 cores and 16 GB of ram and run either VMware Desktop or HyperV. As far as this T software goes I find N-Able more effective and when it comes to Linux my goto for beginners is always Linux Mint Cinnamon. I hope this reaches you well.
I've been using tmux for a while.. but no one seems to use it the way I do. One, I have my terminal set up to automatically create a new session targeting "main" (tmux new -t main). What this does is allow you to have multiple terminals open, all viewing the same tmux session, but allowing each terminal to focus on a different tmux window. This gives me the same control you have over your split panes.. but now I can move a pane onto a different virtual desktop.. or different monitor. I never need to split a tmux window because I have half a dozen real terminal windows open and can move them around how I want them. Finally, the fastest way to change which window is in focus is "ctl-b #" where # is the number of the window
I just got into it after seeing the primagen's setup and the one screen at a time mentality with super fast switching between sessions. It blew my mind. I often work in the same folders and span nvim but with tmux I can just leave it open in the background and be right in, plus I'm editing different files at a time, even tho telescope is great in nvim, tmux is much faster and not losing the progress is priceless. You can always be exactly where you left off in previous sessions
I actually run a minecraft server on Oricle Cloud Services and I use tmux almost daily when connecting to my server, without it once I close console my server would go offline. Oddly enough I get reccomended this video & I did learn some things that I didn't know previously. Great video as always!
ok. tmux is actually awesome because ive been learning sql (also because of you) and im trying to make the database interact with c++ and having many panels open is much easier than four tabs. im even using wsl which is pretty un. youve taught me so much and i hope that you keep teaching more!!
8:28 That's the wise man's... wisdom right there! «Any of the hot keys mentioned in this video can be changed, I like sticking to defaults, so no matter what system I have, if I install Tmux, I don't have to redo anything» 😌
one of the cool features I love in tmux is that I can show my coworker what I'm working/typing on that server. We ssh into the same server and open the same tmux session and he can see what I'm typing in real time.
This is really helpful. I have been using screen for long time. I am able to quickly understand and compare the problems tmux solve in my usecases already. Thanks for putting it in a very comprehensible manner. Really appreciate it.
Also with tmux, I use tmuxinator to launch my projects with an initial setup of windows and panes. This started a couple of years ago when I needed to start several services and a slow VM. Manually doing it would usually take on average 2-3 minutes and I cut that to 4-5 seconds. 5 times a week for a year, this shaves hours. I made "mux" the shortcut for tmuxinator so I can type "mux s my_project" to start everything
Fun! I already learned a bit of tmux to keep my Minecraft server running in a Oracle cloud server without the need of keeping my session active. Works like a charm!
Some systems don't have nano and only vi or vim, which has been around since the days of DEC VT100's and DEC VAX 11/780 running Unix 3BSD. Even TMUX has been around since 2007. Some system administrators are slow to adopt very useful tools for fear of instability or network security issues.
@@WA4OSH also depends on the flavor of *nix, tmux isnt ported or installed by default on every one, screen probably there, I use byobu as a wrapper, just pick your favorite backend
Funny how I have used windows all my life and grew up in a world of convenience, only to find love in terminals where the gui's are limited. Not sure what it is, but I think that it's just because of the sheer power I have from a terminal in linux is just awesome to have.
Spin up your next project with Linode: ntck.co/linode -You get a $100 Credit good for 60 days as a new user!
I just started using Tmux……it’s amazing! If you use a terminal or CLI in any capacity Tmux will 10x your productivity in 10 seconds. From creating multiple panes and windows with ease to leaving your terminal sessions active as you switch between machines Tmux is a must have in your toolbelt. In this video, I’ll show you how to get started with Tmux…which is REALLY easy. Then we’ll jump into how to actually use Tmux, which can be kind of complex at first but becomes easier as you practice. We’ll cover how to install Tmux, use Tmux and how to master all of the hotkeys.
Video Stuff
---------------------------------------------------
Tmux Cheatsheet (all the commands): tmuxcheatsheet.com/
🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy
**Sponsored by Linode Cloud Computing from Akamai
ok but why are sponserd by linode like all the time
@@aliega-studios Why not?
@@hyplayer like they are like a loot off thigns but it's better to localy to host your things
Have you tried terminator?
@@aliega-studios His videos are sometimes sponsored by NordVPN and Hostinger. He sells merch, coffee and merch. He also has a Patreon. We get great content with he has a nice side-hustle. Do you have a problem with the freedom of enterprise?
What I love about your videos is that you get right to the point and tell me why I want to learn what you're about to show me and then you jump right into using it, showing me how to use it instead of telling me how to use it. Efficiency at its finest.
Ping pow pooff... done! lol
I think the same as you
100% this comment
You are the one (maybe the only one),
who never disappoints to be the guy who exactly show us how to do something.
Like, I mean, literally "how" to do something.
thank you so much.
Great Video Chuck! I used to work for a company where an employee would try everything for their ssh-session to stay alive, whilst they were dumping a database. They were astonished when I just tmux'd in, started the dump, detached, logged out of ssh and went home lol! Imagine how many working hours have been wasted like this, as it happened approx about an hour every workday. I used "screen" back then, but tmux is the way to go!
If you want to close your panes/windows/sessions, you can just use control+d (or C-d if you like this notation) which perfoms a simple "exit" (or disconnect / logoff) on the current highlighted pane. This is not a tmux command, this works for any (bash) shell. Happy new year coffee-fellows!
I've used tmux for so long that I can't imagine life without it, it's a great tool.
Great video!
I learned about the 'screen' command years ago, solely for the purpose of running a script or command while I'm out on the road and needing to not kill it before traveling to a new destination. But then I NEVER realized the command had all of these functions and capabilities until I started to watch this video.
As soon as I heard you need to 'disconnect from the session' it dawned on me... "This sounds awfully familiar to that 'screen' command"
I immediately went to the man pages for 'screen' and discovered... This 'tmux' is just utilizing 'screen' and making it WAY easier to navigate and control.
Thank you for simplifying this for us, because I don't think I would've made this discovery without the quick and easy-to-follow video.
Thanks for remind me 'screen' command, didn't use it for years.
I work in configuring passive monitoring telecommunication probes running Linux primarily, and in the last year, my company has incorporated Tmux into the OS. This 15 minute explanation is much better than 2 hour presentation on how to use Tmux. Amazing!
“Passive monitoring telecommunication probes” Lawful intercept?
monitoring, not intercept. :)@@BigTurtleMane
@@rvbarton hmm 🤔 what’s the difference between this and what they call “lawful intercept” which is just a fancy name for wiretapping?
I used screen for years. It does basically the same as tmux, however, tmux does look cool, easier and more powerful.
Some basic commands.
apt install -y screen
screen -S bob to name a session
Ctrl+a d to detach
screen -ls to list sessions
screen -r bob to reattach
type exit to kill the current session
I've been using it too when I run long-lasting jobs in a remote machine.
Same. I been using screen for a long time. Core functionality is already there to do what u need.
Also great for when you want to send commands to multiple panes, for instance to 20 ssh or serial connections to switches. Use 'set synchronize-panes' to start sending your keys to all panes in the current window
I’m really surprised this wasn’t covered. It’s what got me into tmux when I was learning kubernetes and for educational reasons, built my cluster the hard way from scratch. Using tmux allowed me to have 3 panes each sshed to a node and then I could send all keyboard commands to every pane simultaneously. That for me is the killer feature of tmux.
One of the main superpowers of this tool for sure!
@@gerardoriveroll7346 For me its superpowers are its main purpose; working in sessions and panes and the ability to keep sessions running.
I work almost exclusively in Tmux and basically use it as an extention to my terminal emulator. For instance working with Tmux panes instead of opening a terminal in Neovim.
Mind blown
Not saying it's better or worse but for the record, this can also be done with "cssh" (or "clusterssh") but that's exclusively for that, of course with tmux we can do other things :)
Your videos are really helpful and have taught me a lot in a simplified manner. Learning from you is not only enjoyable but also makes things much better. Thanks a bunch, Chuck! Good Video!
Tmux is so old school. You definitely want to dump it and switch to Zellij.
Hey, I know you probably won't read this, but will you make a new episode of the learn Python series? It's my favorite one and the reason I subscribed actually.
in the works :)
@@NetworkChucki really want the series to be completed 😢
If you're looking for good python videos you can also check out TechWithTim. He actually made many python modules and he has a lot of python content.
@@NetworkChuckplease make python I am kind of like a person who didn’t follow things so I don’t know stuff but know higher stuff / etc so please complete it
And you said he wouldn’t read this….smh 😂
Very timely Chuck! I was just setting up a Terraria server for my friends over the holidays and had to learn Tmux for AWS. I'm sure there's other ways but it worked for me! Thanks!
I've been ignoring Tmux for years, I am still using screen for sessions. I think I may try Tmux now, this video has made it clear that I am using a spoon on steak.
I LOVE YOU FOR THIS. this video is what was the final push for me to try nvim which I couldn't till now because I need other terminals open w/ me. this video is awesome. tmux is awesome. 10/10!
Chuck not only expands my knowledge but also makes me laugh in every video with those little edits. 😄😄You're the dude, Chuck!
I love his COFFEE breaks and of course the monsters, evil laughs, surveillance eyes, etc.
I've been using tmux for about 6 years and today I can't live without it. It has a bit of a learning curve but it's worth it.
Might use it for keeping related `docker run` sessions together in a terminal window for local dev, or when ssh-ing into a headless box. For the former, it's an organizational thing, and for the latter, it saves me from instantiating multiple ssh sessions. Thanks!
`docker compose` is probobally a better approach.
You're super entertaining. As a dad, I'm here to support other dads. Subscribed!
Excellent video, Chuck. It would be worth mentioning the utility named "screen" which existed on UNIX and LINUX for many decades. "screen" was the precursor for modern tool like "tmux".
yeah screen is nice, this is on steroids...
@@protektwarcan you tell me what is new about tmux that you use? To me this feels like a reinvention of the wheel situation.
@@bw1532 I not using it yet, but from the video I would say that I will use the windows split mode in one session and this is not available on screen...
@@bw1532 I've used -- and still use -- screen for decades too, avoiding adopting tmux because I already know screen and figured what was the point since they are basically the same thing. Well, I decide on day to really attempt to learn tmux and man, what a game changer! I now use tmux as my local "terminal window manager" and use screen within tmux on remote systems to help me remember screen key sequences and I prefer screen's log capturing capability to tmux. Manipulating windows and panels is so much easier in tmux than screen. Plus, customizing is way easier once you get the hang of it.
@@protektwarer... yes it is. Its always been there
ctrl a S
ctrl a c
ctrl a |
ctrl a c
Your teaching style is brilliant! So much valuable information not only explained but also reinforced through practice in a quick and simple 18 minute video! Thanks so much, I just subbed
Perfect timing. Ive dpent this holiday (after family goes to bed 😊) trying out some different work setups. Successfully set up arch, decided I probably had more patience for an Ubuntu install, ditched Windows, learned vim, and am on to p3 tiling window manager. tmux is next. 🎉
I knew this type of thing was out there but I've been avoiding boning up enough to use it. Managing term windows isn't overly painful vs tiling, but tiling inside a single window regardless of the state of my WM, **AND** having tiling capability with no WM at all (over remote term) is an overpoweringly awesome solid dub! Thanks for the crash course, Chuck!
I love it! We’re already using it. I distributed it all over my Linux home systems with ansible together with some other configurations like VIM, ssh config file etc. Using different prefixes for local and remote for nested sessions.
really fun to watch. high quality audio. i don't know crap about linux but i watched this whole video beginning to end (thanks youtube algorithm) and loved it. also well done from an educational perspective. i'm sure this guy's 3.62M subscribers are like, 'yeah, that's just what he does.'
I agree! I think tmux should be learned right now! tmux is awesome!
I almost dont regard chuck as an educator, his videos are too broad, but he is damn well the best advocate of IT on youtube.
Your a legend this next year will be two years since learned linux and you helped alot with the way you explain things and simplify it thanks you
I recently picked up Neovim and have been thinking about picking up tmux to maximize my workflow and this was the push I needed. Thanks!
combine with bash scripts for launching certain tmux session setups for certain projects and it's so nice. i just do "p work-react" in my terminal and it opens a tmux session with two windows, one of which is split into 3 panes with various things and the other is a window for neovim text editing. you can get so fast.
nice video Chuck! I think it might be worth mentioning the GNU “screen” command, since screen is another terminal multiplexer that does the same thing, and is included in a bunch of default linux distros. Tmux is definitely better though.
Came here for this comment. Thank you.
Long time Debian user. First thing I thought was "why do you need tmux when screen does the same thing?" LOL
You beat me to it. I use screen for this.
Another plus for screen, it’s lightweight and equally powerful
The big plus for me is with tmux you have the option to join with multiple pcs/users. So you have a friend/colleague that's logged into the same server as the same user and he can just attach to your session. That's not as easily possible with screen
been using tmux for over 10 years now... its a must in every dev environment I set up.
I've abused tmux over the years. I've found rebinding to c-a instead of c-b makes it way easier to manage. Also, get your dotfiles in order so you can be familiar across your stations.
I used to use c-a too, but I've found that using C-Space is just as manageable, and it doesn't stray too far off the default key binding, in case you ever need to use vanilla tmux on a random server that you don't have your dotfiles
I use C-s as my prefix key in my local terminal tmux because I also use screen (& tmux) on remote sessions within my local tmux.
It's been awhile since I've used screen, but isn't Ctrl-A the screen command?
@JoeyGarcia yes, which is why I use it. Like I said, it's easier to manage. What I left out was it is for me. I'm not the kind of guy that will screen in a tmux session, so both will be familiar to me when I use either.
@@BlizzetaNet makes sense! When I first switched from screen to tmux, it took me a while to get adjusted to it. If you keep switching back and forth, then keeping things consistent is helpful.
I'm surprised this video came out a month ago. Been using it for a couple years and has saved so much time and effort.
Chuck ... Thanks for the TMUX lesson. I will have to memorize some of the CLI for TMUX. I've been using the GUI-based terminator. The detach feature is really good for taking a coffee break.
Termionator has a very good feature that you can make groups in multiple windows and then write commands to all terminals at once. Awesome!
I'm using tmux since 2007. Simply fantastic! I totally recommend it!
im more of a gnu screen guy
next video idea: you need to learn vim RIGHT NOW!!
You know when someone have made a "brand" for them self, was looking for this video but due to the lack of coffee for several days I couldn't for my life remember your name, sorry!
SO I put in "cooffee tmux" as search term and your channel and this video was the first hit i got. :) GG Chuck well done.
Dude, love your presentation style. To the point and engaging. Great vid! Also, love the shout-outs.
This is perfect, I'm going through an ethical hacking course and this just made things so much easier! Panes are all I wanted but knowing I can incorporate Vim movements and a copy mode like this is an added bonus! I'm never leaving the terminal now
I sense a tmux vs. screen fight. Similar to the old vi vs. emacs wars of the 90's. For me, it's vi (vim) and screen.
came here for this.
vi. but I was fighting that in the 80's already ;)
Hehe. Fight!
I prefer a Linux OS fight. Fight! Fight! Fight!
@@boink800 K, I'll start:
I use Garuda dra9onized because it's the prettiest prepackaged Arch rice.
You explained really well, sometimes people tell me I keep using this "bloated" software and I always tell them It's not bloatware if you take advantage of all the bloat
Sir Please make roadmap of cyber security in 2024
Always your stuff 🎉 Hits
Love from India 🚩🇮🇳
Stop watch cron 🙈🙈
You've sold me in first 28 seconds, not even lying. It's the issue I have as someone who has some work interruptions and have to proceed to work from laptop on some server provisions or similar. What NONE of these videos so far have mentioned, as I've seen, being able the have THE SAME session from *multiple* devices - that's a seller feature.
nevermind, it doesn't do that in it's base setup. What's the point of it then!?
Tmux is the best friend of any IT guy.
I find myself needing to watch each of your videos multiple times, often at a reduced speed (50-75%), because you speak quite rapidly. While I appreciate the educational content, the fast pace makes it challenging for me to absorb the material as effectively as I'd like.
However, I continue to learn from your channel as I have yet to find an alternative that matches the quality of your presentations. You truly stand out as exceptional in this field. Thank you for all the knowledge you have shared. If I ever come across a resource that better suits my learning style, I might switch, but you are my best option.😘
⚡ The video introduces the use of t-mo, a terminal multiplexer, which allows for efficient management of terminal sessions.
00:00
☕ The video demonstrates how to detach and reattach from a session using a simple command, with the example of tracking coffee consumption.
02:40
🔗 The video demonstrates how to use the t-mo command to attach and detach from different sessions in a practice environment.
05:04
🔑 The video explains the use of control B as a prefix key for performing various actions in the Tmux terminal multiplexer.
07:58
⬆ The video demonstrates how to manipulate active paint and create multiple windows in a design application.
10:29
💻 The video demonstrates how to manage multiple windows and sessions in Linux using the control b w and control b x commands.
13:06
⌨ The video demonstrates Vim superpowers for efficient terminal usage, emphasizing keyboard shortcuts over mouse usage.
15:46
Never used tmux but used the screen command alot for attaching and detaching, good for letting long running tasks run when I need to log off
So it took them 36 years to make a fancy version of screen.
😂😂😂😂😂😂 This wins at nerd TH-cam for the fiscal year! 😂😂😂😂
Thank you!
I watched this Video twice and took some notes and now I am pretty confident using tmux in under 1 hour
looks like screen with extra steps and tiling option
I am proud to be a super user of VIM but have always procrastinated diving into TMUX. Thanks for this AMAZING introduction. I am hooked.
Nano is the best!
You can list everything you've copied with C-b =. Thank me later.
Great video.
I've been using Tmux for more than half a year now for development work, and it's been great for efficiency.
Poor Chuck... Every time he wants to film a video, he has to spend the time to put on that ridiculous fake beard before filming 😂
😂😂😂
THAT'S FAKE??!!
@@Ramasani-ur6drYeah, I thought it was real for a bit, then I noticed it just a bit off every video, Linux user thing I guess lol
in the words of that random wrestling fan from that one viral video, "it's real to me, dammit!!"
Why tf would he out a fake beard?
I love using TMUX.
I have 3 main windows on my mine. One for btop, to keep an eye on my hardware usage.
One for docker, to see what is currently running, stats and run docker command.
And the last one for my Syncthing/rclone logs.
You need to talk about plugins. I used resurrect to save and restore my session if I need to reboot.
I liked a lot you videos! Keep going! Love from France!
Tea > coffee
Never seen a single soul fully dived into vim an regretted it.
Some people do go back on it, but throught their time using it usually said to have been a great and productive experience.
A vim video would be gold man, keep up the good work
You are the man Chuck! This is the video I needed right now. I was literally thinking of setting up tmux for improving my workflow despite using a tiling window manager literally yesterday.
For me, the biggest advantage of tmux is use on remote machines where I need to perform a long running task that cannot be interrupted. I live in a country with an unreliable electric grid, so internet goes out in my building during a blackout. Using tmux ensures that the session is saved, the task still continues if I'm knocked offline and it saves the stdout/stderr buffers so I can see what, if anything went wrong. Of course, the power never, ever goes out when I use it, but nice to know it's there as a safety net.
ever tried to use tmux for persistent "background" tasks? works perfect for the stuff that has no daemon mode! most of the session/window/pane setup can be scripted, some places I use it as a IDE!
Great video. Infotainment at its finest. I used the heck out of tmux in the past for some projects but not in a while. Excellent refresher, thanks.
@NetworkChuck thank you for this tmux tutorial and all of your videos. Been watching and learning from you for over a year. I have been using tmux for less than a year, but have used it on a weekly basis to manage my Unraid server & Synology NAS to move & cleanup filles, edit configs, etc. I love the ability to leave a tmux session, or multiple tmux sessions running in the background and then return to them at a later date/time and continue where I left off at. Thank you!!!
I am using tmux on my linuy systems for many years and i love it! Thanks for making this video about this powerful tool!
I mentor a lot of people and one of the questions I get the most is "how did you do that" when zooming in on one pane temporarily. It would be nice if this video included that, scrolling, and searching. Other than that this is a great intro, and I'll def be sharing with people!
Something I haven't seen in the comments, for training, attaching to someone else's session on the same machine is great, even if you're both sitting with each other.
Also I usually recommend pluggins like 'tmux resurrect' to revive your panes after the machine shuts down.
I've been hearing about tmux a lot, and because of your video, i started using it, thanks!
This is perfect timing! About to start a Certified Ethical Hacker class next semester and I am sure this will be useful.
Never disappoints, as an 18 yr old studying Computer Science and tryna get into Cyber security, I am learning a lot from u man, keep up the good work❤
Currently working on HTB stuff (I am really green) and the instructions that I found were not making the most sense to me. But hearing it out loud instead of reading it made it much easier to understand. This helped me a ton and I am looking forward to using it more.
I used "screen" for a very very long time, but tmux is - next level. To be able to split windows "HotDog style" AND "Hamburger style" is awesome ! Thank you for the video.
I really want to make a shirt that says Always Be Tmux'n. Love tmux. Two things outside of what you showed that I love: Turn a pane into a clock with ctrl+b, t and secondly, zoom into a pane with ctrl+b, z. I use both of those quite a bit and love them.
tmux has been part of my local and remote dev environment for about 7 years already. I use it ALL the time. I even deploy it and my tmux config on every machine I use with Ansible.
One of my work friends pushed me to use tmux, so I'm grateful for the quick tutorial. I run openSUSE Leap in WSL with systemd, so I had to troubleshoot a missing directory after killing Windows Terminal. Turns out the tmpfs needed for tmux gets nuked every time, had to run a command to fix it.
I've been using screen because tmux always looked too complicated, but this really simplified it for me. I think I'll use tmux going forward. Thanks!
I like your videos, very informative and helpful. Thank you for creating them. As an IT person previous senior MSP tech, currently systems architect and administrator. I have given the advice to beginners, buy a computer with more then 8 cores and 16 GB of ram and run either VMware Desktop or HyperV. As far as this T software goes I find N-Able more effective and when it comes to Linux my goto for beginners is always Linux Mint Cinnamon. I hope this reaches you well.
I've been using tmux for a while.. but no one seems to use it the way I do. One, I have my terminal set up to automatically create a new session targeting "main" (tmux new -t main). What this does is allow you to have multiple terminals open, all viewing the same tmux session, but allowing each terminal to focus on a different tmux window. This gives me the same control you have over your split panes.. but now I can move a pane onto a different virtual desktop.. or different monitor. I never need to split a tmux window because I have half a dozen real terminal windows open and can move them around how I want them. Finally, the fastest way to change which window is in focus is "ctl-b #" where # is the number of the window
I just got into it after seeing the primagen's setup and the one screen at a time mentality with super fast switching between sessions.
It blew my mind. I often work in the same folders and span nvim but with tmux I can just leave it open in the background and be right in, plus I'm editing different files at a time, even tho telescope is great in nvim, tmux is much faster and not losing the progress is priceless.
You can always be exactly where you left off in previous sessions
I actually run a minecraft server on Oricle Cloud Services and I use tmux almost daily when connecting to my server, without it once I close console my server would go offline. Oddly enough I get reccomended this video & I did learn some things that I didn't know previously. Great video as always!
ok. tmux is actually awesome because ive been learning sql (also because of you) and im trying to make the database interact with c++ and having many panels open is much easier than four tabs. im even using wsl which is pretty un. youve taught me so much and i hope that you keep teaching more!!
8:28 That's the wise man's... wisdom right there! «Any of the hot keys mentioned in this video can be changed, I like sticking to defaults, so no matter what system I have, if I install Tmux, I don't have to redo anything» 😌
one of the cool features I love in tmux is that I can show my coworker what I'm working/typing on that server. We ssh into the same server and open the same tmux session and he can see what I'm typing in real time.
This is really helpful. I have been using screen for long time. I am able to quickly understand and compare the problems tmux solve in my usecases already. Thanks for putting it in a very comprehensible manner. Really appreciate it.
Thanks for the video. Shortcut for people in a hurry like I was:
CTRL+B to enter command mode
% to split vertically
" to split horizontally
Haven't finished watching them videos but yes, yes, yes. It's my favorite terminal app. It's so useful!
SOOOOOO much gratitude for this video, this channel, and you! You're a wizard, youuuuu!
Love the funny, alive and entertaining style. So much fun to watch and so educative
I just start using Tmux couple months ago but this video will really help me out to be better at it
Also with tmux, I use tmuxinator to launch my projects with an initial setup of windows and panes. This started a couple of years ago when I needed to start several services and a slow VM. Manually doing it would usually take on average 2-3 minutes and I cut that to 4-5 seconds. 5 times a week for a year, this shaves hours.
I made "mux" the shortcut for tmuxinator so I can type "mux s my_project" to start everything
Crazy, thank you for introducing the all the commands. Easy to understand and I'll be installing tmux right now
Fun! I already learned a bit of tmux to keep my Minecraft server running in a Oracle cloud server without the need of keeping my session active. Works like a charm!
That sure was an eye opener, will definitely learn Tmux. I love the idea of being proficient with it. Thank you for a fantastic tutorial, subscribed!
After months of hearing about it, I finally broke my tmux cherry last night and I love it. This video is perfectly timed.
TMUX became my main terminal window management. Very nice tool
a really very helpful, simple, eazy to understand and amazing video, as always.
Your video tutorials makes everything look so simplified. thanks chuck this really helps. happy new year
Just like switching from nano to vim, I need to switch from screen to tmux - thanks for the quick and easy rundown!
Some systems don't have nano and only vi or vim, which has been around since the days of DEC VT100's and DEC VAX 11/780 running Unix 3BSD. Even TMUX has been around since 2007. Some system administrators are slow to adopt very useful tools for fear of instability or network security issues.
@@WA4OSH also depends on the flavor of *nix, tmux isnt ported or installed by default on every one, screen probably there, I use byobu as a wrapper, just pick your favorite backend
@@rotflol6666 Indeed. I had to install TMUX on my computer running Ubuntu v22.04 LTS. I will have to try byobu. Thanks!
Loved using Tmux in the past. Still learnd something and will use stuff like the window and pane overview stuff (ctrl+b w) loved it
Chuck, you have a gift for making the basics exciting again
I can't believe you only made this video now. This is the most important thing that I use
Also you really need to learn neovim, it is awesome. My programming speed doubled after switching to it.
I use tmux daily and have for well over a year. It's super awesome.
Thanks for your videos Chuck, i learn a lot specially linux, docker, proxmox. Regards from Buenos Aires Argentina soccer world champions
Funny how I have used windows all my life and grew up in a world of convenience, only to find love in terminals where the gui's are limited. Not sure what it is, but I think that it's just because of the sheer power I have from a terminal in linux is just awesome to have.
I have absolutely no idea what you are talking about, but I love your videos.
Short , simple and concise. Liked it.