I am fairly familiar with Linux, I’ve been using different distros for some years now and have done some config editing here and there. I am also a web developer and use the terminal quite a lot and so I always stumble on people’s recommendation to use tmux and how good it is, but I never really understood what it does and, in layman’s terms, how can it be useful and for what use cases.
Can you guys please enlight me a bit on this?
Thank you.
Edit: if my phrasing is a bit awkward or confusing I apologize since I am not an English native speaker. (Maybe that’s why I never fully grasped what tmux is from other explanations xD)
Edite: Ok, just to clarify, my original struggle was to understand what made tmux different from using some terminal app and just split the screen xD
I didn’t see this mentioned, but by far the thing I depend on tmux for the most is being able to quickly copy and paste text from the terminal. e.g. grabbing a file name from the output of
git diff
. How does everyone else do this?Another cool one is being able to attach to a session on my phone to check on something, and have it automatically resize without disconnecting my desktop.
I copy by pressing ctrl+shift+C. Some terminal emulators copy on select. A terminal multiplexer isn’t needed to copy.
I suspect what they meant was copy and paste from the console and not a terminal.
I don’t know how else somebody could do copy and paste at the console. And I don’t necessarily know that tmux can do this (I still haven’t graduated from ‘screen’), but this interpretation makes the most sense.
If it can do this, presumably with just the keyboard, that’s a pretty decent feature.
Yeah, doing it with the keyboard is key. I know some terminals have a way to do it, but it’s so ingrained in my muscle memory that I struggle without it, and having something that works everywhere (including try) is nice.