The free Linux tool that keeps your terminal sessions alive forever


Even though most Linux distros don’t require as much time in the terminal as they used to, eventually, it is going to come up. If you’re doing anything remotely, executing a long task, or even just multitasking, the default tools may not be enough. That is where tmux comes in.

Terminal sessions weren’t designed to last forever

End the job when the window closes

A Linux terminal open in Ubuntu with the vim editor editing the .bashrc file. Credit: Jordan Gloor / How-To Geek

Most of the time when you’re doing something in the terminal, that activity is tied directly to the terminal. For example, if I’m hosting a Minecraft server and I run the server executable, then that instance of the server depends on that specific terminal window. If I close it, the Minecraft server shuts down with it.

This applies to pretty much anything you do with the terminal—moving large files, SSH connections, searches, any executable that runs, system monitors, and more. Unless you specifically do something to make the job persist after the terminal is closed, they’ll stop when the terminal closes.

In some cases, that can be a good thing. If a program freezes, you can just close the terminal to forcibly quit. You also don’t want a demanding application quietly running in the background by accident without you realizing.

Konsole Terminal open on the Kubuntu Focus Ir14 Linux laptop.


How to Use the htop Command on Linux

More than just a pretty face.

On the other hand, it is a problem if you need something to keep going. It is particularly annoying when you’re doing remote administration, and you want a job to keep running after you disconnect from the SSH session.

Screen solved the problem a long time ago

Screen is an application that was built decades ago to address the problem, and it generally works pretty well. However, Screen is a product of its time. When you need something very lightweight and included by default, it is a good option. If you need something with more features, there is a more modern application: Tmux.

Tmux allows terminals to last as long as you need

It does everything screen does and more

Tmux is a terminal multiplexer that allows you to easily swap between applications in one terminal window, or detatch terminals virtually so they can keep running in the background and then reconnect later.

If you’re doing any kind of remote management, or you’re using a PC that is command-line only—like a headless Ubuntu server that you have a monitor and keyboard attached to—then it is a fantastic option.

No more closed servers

Originally, I started using tmux because my Minecraft server would shut off anytime I ended the SSH connection. That was a problem, since restarting my PC, a Windows update, or even accidentally closing the Terminal window kills the SSH connection.

Now, I just create a new tmux session as soon as I connect to my Minecraft server. For example, I might run:

tmux new -s mcserver

Anything I run within that session will stay running even when I disconnect. Whenever I want to come back to do something—like restart the server or access the admin panel—I just need one command.

tmux attach-session -t mcserver

You’re not limited to hosting servers, either. Any time you think a process might take longer than a few minutes (like copying a large number of files) I’d recommend using a tmux session. It ensures you won’t accidentally interrupt some process in the middle.

You have a long history of your actions

Every terminal out there keeps a running log of the things you enter. That serves multiple purposes.

If a command you enter accidentally breaks something, you’re not left wondering about the details—you can just check what you did. That makes troubleshooting easier. Alternatively, if there is an elaborate command you find yourself running a lot, you don’t need to type the entire thing in over and over again. You can just go back in your history then tap Enter to run the same command again.

One of the advantages of tmux, which I’ve found to be especially helpful on my home server, is the extensive history. By default, it’ll save several thousand commands. You can also change that limit by editing the .tmux.conf file, which is located in your user directory.

Tmux makes multitasking better

Besides its ability to ensure that you don’t lose a task in progress when you close a window or exit SSH, tmux is also handy for general multitasking.

If you’re using a Linux distro with a graphical user interface (GUI), multitasking isn’t a problem—you can just open up another terminal if you need one. However, if you’re working on a system that doesn’t have a GUI, you don’t have that option. Tmux allows you to open any number of sessions so that you can easily switch between tasks whenever you want, even if a process running in one session will take three hours and the other will finish in 30 seconds.


Tmux is an essential tool for anyone self-hosting

Regardless of what fancy dashboards you set up, if you’re self-hosting, you’re eventually going to have to work using the command line. Tmux is one of those tools you won’t need to use all the time, but when it becomes necessary, you’ll be very glad to have it.

Dell XPS 13 Plus 2023

Operating System

Ubuntu Linux 22.04 LTS

CPU

13th Gen Intel Core i7-1360P




Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


As I’m writing this, NVIDIA is the largest company in the world, with a market cap exceeding $4 trillion. Team Green is now the leader among the Magnificent Seven of the tech world, having surpassed them all in just a few short years.

The company has managed to reach these incredible heights with smart planning and by making the right moves for decades, the latest being the decision to sell shovels during the AI gold rush. Considering the current hardware landscape, there’s simply no reason for NVIDIA to rush a new gaming GPU generation for at least a few years. Here’s why.

Scarcity has become the new normal

Not even Nvidia is powerful enough to overcome market constraints

Global memory shortages have been a reality since late 2025, and they aren’t just affecting RAM and storage manufacturers. Rather, this impacts every company making any product that contains memory or storage—including graphics cards.

Since NVIDIA sells GPU and memory bundles to its partners, which they then solder onto PCBs and add cooling to create full-blown graphics cards, this means that NVIDIA doesn’t just have to battle other tech giants to secure a chunk of TSMC’s limited production capacity to produce its GPU chips. It also has to procure massive amounts of GPU memory, which has never been harder or more expensive to obtain.

While a company as large as NVIDIA certainly has long-term contracts that guarantee stable memory prices, those contracts aren’t going to last forever. The company has likely had to sign new ones, considering the GPU price surge that began at the beginning of 2026, with gaming graphics cards still being overpriced.

With GPU memory costing more than ever, NVIDIA has little reason to rush a new gaming GPU generation, because its gaming earnings are just a drop in the bucket compared to its total earnings.

NVIDIA is an AI company now

Gaming GPUs are taking a back seat

A graph showing NVIDIA revenue breakdown in the last few years. Credit: appeconomyinsights.com

NVIDIA’s gaming division had been its golden goose for decades, but come 2022, the company’s data center and AI division’s revenue started to balloon dramatically. By the beginning of fiscal year 2023, data center and AI revenue had surpassed that of the gaming division.

In fiscal year 2026 (which began on July 1, 2025, and ends on June 30, 2026), NVIDIA’s gaming revenue has contributed less than 8% of the company’s total earnings so far. On the other hand, the data center division has made almost 90% of NVIDIA’s total revenue in fiscal year 2026. What I’m trying to say is that NVIDIA is no longer a gaming company—it’s all about AI now.

Considering that we’re in the middle of the biggest memory shortage in history, and that its AI GPUs rake in almost ten times the revenue of gaming GPUs, there’s little reason for NVIDIA to funnel exorbitantly priced memory toward gaming GPUs. It’s much more profitable to put every memory chip they can get their hands on into AI GPU racks and continue receiving mountains of cash by selling them to AI behemoths.

The RTX 50 Super GPUs might never get released

A sign of times to come

NVIDIA’s RTX 50 Super series was supposed to increase memory capacity of its most popular gaming GPUs. The 16GB RTX 5080 was to be superseded by a 24GB RTX 5080 Super; the same fate would await the 16GB RTX 5070 Ti, while the 18GB RTX 5070 Super was to replace its 12GB non-Super sibling. But according to recent reports, NVIDIA has put it on ice.

The RTX 50 Super launch had been slated for this year’s CES in January, but after missing the show, it now looks like NVIDIA has delayed the lineup indefinitely. According to a recent report, NVIDIA doesn’t plan to launch a single new gaming GPU in 2026. Worse still, the RTX 60 series, which had been expected to debut sometime in 2027, has also been delayed.

A report by The Information (via Tom’s Hardware) states that NVIDIA had finalized the design and specs of its RTX 50 Super refresh, but the RAM-pocalypse threw a wrench into the works, forcing the company to “deprioritize RTX 50 Super production.” In other words, it’s exactly what I said a few paragraphs ago: selling enterprise GPU racks to AI companies is far more lucrative than selling comparatively cheaper GPUs to gamers, especially now that memory prices have been skyrocketing.

Before putting the RTX 50 series on ice, NVIDIA had already slashed its gaming GPU supply by about a fifth and started prioritizing models with less VRAM, like the 8GB versions of the RTX 5060 and RTX 5060 Ti, so this news isn’t that surprising.

So when can we expect RTX 60 GPUs?

Late 2028-ish?

A GPU with a pile of money around it. Credit: Lucas Gouveia / How-To Geek

The good news is that the RTX 60 series is definitely in the pipeline, and we will see it sooner or later. The bad news is that its release date is up in the air, and it’s best not to even think about pricing. The word on the street around CES 2026 was that NVIDIA would release the RTX 60 series in mid-2027, give or take a few months. But as of this writing, it’s increasingly likely we won’t see RTX 60 GPUs until 2028.

If you’ve been following the discussion around memory shortages, this won’t be surprising. In late 2025, the prognosis was that we wouldn’t see the end of the RAM-pocalypse until 2027, maybe 2028. But a recent statement by SK Hynix chairman (the company is one of the world’s three largest memory manufacturers) warns that the global memory shortage may last well into 2030.

If that turns out to be true, and if the global AI data center boom doesn’t slow down in the next few years, I wouldn’t be surprised if NVIDIA delays the RTX 60 GPUs as long as possible. There’s a good chance we won’t see them until the second half of 2028, and I wouldn’t be surprised if they miss that window as well if memory supply doesn’t recover by then. Data center GPUs are simply too profitable for NVIDIA to reserve a meaningful portion of memory for gaming graphics cards as long as shortages persist.


At least current-gen gaming GPUs are still a great option for any PC gamer

If there is a silver lining here, it is that current-gen gaming GPUs (NVIDIA RTX 50 and AMD Radeon RX 90) are still more than powerful enough for any current AAA title. Considering that Sony is reportedly delaying the PlayStation 6 and that global PC shipments are projected to see a sharp, double-digit decline in 2026, game developers have little incentive to push requirements beyond what current hardware can handle.

DLSS 5, on the other hand, may be the future of gaming, but no one likes it, and it will take a few years (and likely the arrival of the RTX 60 lineup) for it to mature and become usable on anything that’s not a heckin’ RTX 5090.

If you’re open to buying used GPUs, even last-gen gaming graphics cards offer tons of performance and are able to rein in any AAA game you throw at them. While we likely won’t get a new gaming GPU from NVIDIA for at least a few years, at least the ones we’ve got are great today and will continue to chew through any game for the foreseeable future.



Source link