this post was submitted on 06 Jul 2023
15 points (100.0% liked)
Linux
48330 readers
597 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Tmux is a great "terminal multiplexer". Let's you split your screen and have multiple sessions running at once. Also lets you detach from a running shell and reconnect later without losing anything.
Lots of good intros are available like: https://medium.com/hackernoon/a-gentle-introduction-to-tmux-8d784c404340
Oh yea that's a good one. There's also Zellij which tries to be a modern replacement for tmux
https://github.com/zellij-org/zellij
Interesting. I've been using BYOBU as a tmux wrapper for a while now. I'll have to check out Zellij as well
This is my new build go to package. Right behind vim and netstat.
Before running updates or big installs, get in to a tmux session. If your ssh session drops, it won’t interrupt the process.
If you want to see multiple servers/network devices, run the same commands, see the same output, switch on pane synchronization and run identical commands in all of them. Even password inputs when you run in to a sudo.
You can design layouts by percentage of the screen - 30%, 60% I’ve got three sites with redundant ISPs, 6 panes showing mtr sessions for each link, which work on any terminal size.
You can have someone else log in to the server and connect to the same tmux session as you, and show them what you’re doing and typing real time. Then collect the log afterwards.
I found a tmux session on a CentOS box that had been running for 5 years in the lab environment when I joined my current company - the guy who spawned it left 4 years ago.
It’s incredibly powerful.
Also, mtr-tiny is great for diagnosing latency issues
Learned and used Tmux for my free tier oracle cloud-hosted Minecraft server :) was great to get it to be constantly up without someone needing to SSH in and start the server every time or keep the SSH terminal open without confirmation while playing