4 reasons I use screen instead of tmux on Linux


Terminal multiplexers like screen or tmux are invaluable if you’re working on a PC over SSH or sitting in front of one that only has a command-line interface. Despite its age, screen is always my first choice. This is why.

Screen is included in almost every distro

You don’t have to worry about downloading another app

Tux, the Linux mascot, wearing sunglasses beside a screen showcasing different Linux distros. Credit: Lucas Gouveia/How-To Geek

The biggest advantage of screen over other terminal multiplexers is its ubiquity. Every Linux PC I’ve used in the last 15 years has come with screen pre-installed, whether it was the most barebone version of Debian for a headless server or a fully-fledged desktop operating system like Kubuntu.

This has been especially handy when I’m working with headless servers that I don’t intend to ever put on the internet. I don’t need to worry about whether my SSH session is going to crash the long job I just queued because I don’t have the right program. Screen is going to be available.

On the other hand, tmux is far from universal. There is no guarantee that I’ll always have the required permissions to install a different terminal multiplexer.

Legacy systems support screen

Old systems run important services

An old PC running Prince of Persia 2 with the Linux mascot on the screen. Credit: Lucas Gouveia/How-To Geek | New Africa/Shutterstock

Most of the time you want to keep your system up to date, but that isn’t always possible. Sometimes the software you’re working with only works on an older hardware set or operating system. Maybe your license only applies to a certain version which isn’t able to run on newer versions.

Whatever the case, I have run into scenarios where I am using a Linux system that is quite outdated. The oldest I’ve ever had to use was from 2005.

Linux mascot wearing glasses and suspenders, using a laptop beneath pixelated 'GEEK' text.


I tried the oldest Linux distro still standing, and it was a total reality check

In an era of automated updates and “easy” installers, Slackware 15.0 is a jarring reminder of what Linux used to be.

Despite being ancient in computer years, screen was present, and worked in basically the exact same fashion.

On the other hand, newer terminal multiplexers might be technically superior, but you’re definitely not going to find tmux natively on a PC that old. You may not even be able to install it because the system is so out of date.

It is simpler to use than tmux

Tmux is a great program. When you read the documentation, you’ll quickly find yourself thinking: “Wow, this program can do anything.”

If I really needed those features, that might be a selling point for me. But I don’t, and most people probably don’t either. Screen works well.

You can press Ctrl+A C to create a new screen, Ctrl+A N to go to the next screen, Ctrl+A P to to go the previous screen, or Ctrl+A D to disconnect. They’re simple, easy to remember controls.

The syntax for the command-line is similarly easy.

  • screen -ls — Lists existing screens
  • screen -S (name) — Creates a new screen with the specified name
  • screen -r — Reconnects to the last session, or a session you specify
  • screen -X -S (name) kill — Closes the session you name

The ease-of-use means that I don’t have to memorize a dozen or more different commands or shortcuts to manage my sessions. It also means that screen is very beginner-friendly, something that matters a lot when you’re trying to get your first Minecraft server running and don’t want to learn a complicated program in the process.

Even if I don’t touch screen for a few months or a year, the simple shortcuts and syntax mean I can sit down, open up an SSH connection, and get to work without missing a beat.

There isn’t much configuration you need to do

Simple to use and simple to customize

The default screenrc file located in the etc folder.

One of the big advantages of screen is the simplicity. That doesn’t only apply to the syntax and shortcuts, but the configuration files as well.

Screen’s settings are controlled by the .screenrc file. The default screenrc file is located in the /etc folder, while the file that controls the user’s individual settings is located in the user’s home folder. When you open screenrc up, you’ll find it is surprisingly short.

Some of the easiest and most helpful changes you can make are to the shortcuts (keybinds). I think the defaults are pretty intuitive, but if you’d like to change them, you can. You can also change the size of the scrollback, which you may find helpful if you want a long list of the commands you’ve entered.

The screen manual also details several other things you can change.

If you want to make screen fancier, there are dozens of modified screenrcs available on the internet that make it “better.” Just be sure to download them from a reputable source.


Sometimes simple is better

Screen doesn’t have complete feature parity with tmux, but in many situations that is actually a strength. Sometimes, if you’re looking for reliable, the old, simple solution is the best one.

Screen has saved my work when an SSH connection closes by accident more times than I can count, and I’m not going to give it up any time soon.

Kubuntu Focus M2 Gen 6 laptop.

8/10

Operating System

Kubuntu 24.04 LTS

CPU

Intel Core Ultra 9 275HX (2.7GHz up to 5.4GHz)

This laptop is purpose-built for developers and professionals who want a Kubuntu Linux-powered portable workstation and gaming platform. It features an Intel processor capable of hitting 5.4GHz and both integrated graphics and a dedicated NVIDIA 5070 Ti GPU for when you need extra power for machine learning or games.




Source link

Leave a Reply

Subscribe to Our Newsletter

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

Recent Reviews


Google Maps has a long list of hidden (and sometimes, just underrated) features that help you navigate seamlessly. But I was not a big fan of using Google Maps for walking: that is, until I started using the right set of features that helped me navigate better.

Add layers to your map

See more information on the screen

Layers are an incredibly useful yet underrated feature that can be utilized for all modes of transport. These help add more details to your map beyond the default view, so you can plan your journey better.

To use layers, open your Google Maps app (Android, iPhone). Tap the layer icon on the upper right side (under your profile picture and nearby attractions options). You can switch your map type from default to satellite or terrain, and overlay your map with details, such as traffic, transit, biking, street view (perfect for walking), and 3D (Android)/raised buildings (iPhone) (for buildings). To turn off map details, go back to Layers and tap again on the details you want to disable.

In particular, adding a street view and 3D/raised buildings layer can help you gauge the terrain and get more information about the landscape, so you can avoid tricky paths and discover shortcuts.

Set up Live View

Just hold up your phone

A feature that can help you set out on walks with good navigation is Google Maps’ Live View. This lets you use augmented reality (AR) technology to see real-time navigation: beyond the directions you see on your map, you are able to see directions in your live view through your camera, overlaying instructions with your real view. This feature is very useful for travel and new areas, since it gives you navigational insights for walking that go beyond a 2D map.

To use Live View, search for a location on Google Maps, then tap “Directions.” Once the route appears, tap “Walk,” then tap “Live View” in the navigation options. You will be prompted to point your camera at things like buildings, stores, and signs around you, so Google Maps can analyze your surroundings and give you accurate directions.

Download maps offline

Google Maps without an internet connection

Whether you’re on a hiking trip in a low-connectivity area or want offline maps for your favorite walking destinations, having specific map routes downloaded can be a great help. Google Maps lets you download maps to your device while you’re connected to Wi-Fi or mobile data, and use them when your device is offline.

For Android, open Google Maps and search for a specific place or location. In the placesheet, swipe right, then tap More > Download offline map > Download. For iPhone, search for a location on Google Maps, then, at the bottom of your screen, tap the name or address of the place. Tap More > Download offline map > Download.

After you download an area, use Google Maps as you normally would. If you go offline, your offline maps will guide you to your destination as long as the entire route is within the offline map.

Enable Detailed Voice Guidance

Get better instructions

Voice guidance is a basic yet powerful navigation tool that can come in handy during walks in unfamiliar locations and can be used to ensure your journey is on the right path. To ensure guidance audio is enabled, go to your Google Maps profile (upper right corner), then tap Settings > Navigation > Sound and Voice. Here, tap “Unmute” on “Guidance Audio.”

Apart from this, you can also use Google Assistant to help you along your journey, asking questions about your destination, nearby sights, detours, additional stops, etc. To use this feature on iPhone, map a walking route to a destination, then tap the mic icon in the upper-right corner. For Android, you can also say “Hey Google” after mapping your destination to activate the assistant.

Voice guidance is handy for both new and old places, like when you’re running errands and need to navigate hands-free.

Add multiple stops

Keep your trip going

If you walk regularly to run errands, Google Maps has a simple yet effective feature that can help you plan your route in a better way. With Maps’ multiple stop feature, you can add several stops between your current and final destination to minimize any wasted time and unnecessary detours.

To add multiple stops on Google Maps, search for a destination, then tap “Directions.” Select the walking option, then click the three dots on top (next to “Your Location”), and tap “Edit Stops.” You can now add a stop by searching for it and tapping “Add Stop,” and swap the stops at your convenience. Repeat this process by tapping “Add Stops” until your route is complete, then tap “Start” to begin your journey.

You can add up to ten stops in a single route on both mobile and desktop, and use the journey for multiple modes (walking, driving, and cycling) except public transport and flights. I find this Google Maps feature to be an essential tool for travel to walkable cities, especially when I’m planning a route I am unfamiliar with.


More to discover

A new feature to keep an eye out for, especially if you use Google Maps for walking and cycling, is Google’s Gemini boost, which will allow you to navigate hands-free and get real-time information about your journey. This feature has been rolling out for both Android and iOS users.



Source link