Can you please ELI5 tmux?

https://lemmy.ml/post/1931366

Can you please ELI5 tmux? - Lemmy

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.

The most common use case for tmux is to put long running terminal apps in the background when working remotely, e.g.:

# start a new virtual terminal tmux # do something in the terminal that will take a long while to complete sleep 1m # put the virtual terminal into the background Ctrl-b d # do other stuff # reattach to the virtual terminal tmux a

This allows you to disconnect from the server, but keep the process running in the background. It can also do split screen with multiple terminals, provide a scroll back buffer (Ctrl-b PageUp) and other stuff. But using it for background processes is probably the most common one.