3 unheard-of Linux tools that fix everyday command-line annoyances

Configurare noua (How To)

Situatie

Terminal tools are magnetic to shell-focused users. They look cool, and we’re always driven to make our workflows faster and more efficient. I have three tools you’ve probably never heard of, but they solve persistent niggles you’ve yet to fix.

Ouch is a unified archiver tool that takes the guesswork out of extracting zip-like formats. ISD (Interactive Systemd) makes managing systemd services as simple as pushing buttons. Topgrade provides one channel to upgrade via the dozens of package managers you probably have. If you’ve used Linux, you’ve had these problems at some point, so take a look.

Solutie

Ouch

A straightforward, multi-function archiver

A terminal window shows a for loop using ouch to compress a text file into many archive formats, then an ls listing the resulting archives in formats such as 7z, tar, xz, zip and zst.

When it comes to archiving, I’ll admit, I only know the tar and zip commands because they’re the most common. In fact, I rarely come across an archive that doesn’t work with tar -xvf, since it’s usually a tar file. Occasionally, I encounter a zip file, and unzip is pretty easy to remember. But once in a while, an unfamiliar format shows up, and without Google, I’d be lost. These days, though, I have ouch, which makes things much simpler.

Ouch is a purpose-built, unified archiving tool. Another way of saying it: it can “unzip” most things, including zip, tar, and 7z. Gone are the days when I needed a custom shell script for that, because ouch now does it for free.

Ouch is a very straightforward tool that can compress, decompress, and list (the contents of) archives. While it’s not faster than the native tooling, it’s not slow either. However, if you need to interact with extremely large archives (gigabytes) or thousands of them, you’ll get more performance from the original utilities. Its value proposition isn’t speed, but instead convenience.

Ouch is available in most distro software repositories, so refer to your system’s package manager.

ISD

Making systemd suck less with an interactive UI

The isd interface in system mode with the Dependencies tab selected, the lower panel showing a tree of systemd service dependencies.

The isd interface in system mode lists qubes services with qubes-gui-agent highlighted, and the lower panel notes that documentation for the service is not known.

The isd interface in system mode with the search bar focused and the query QUB entered. It shows a filtered list of qubes services and a message that the qubes-bind-dirs unit could not be found.

The isd interface in user mode shows a search for qub listing autostart user services, with the lower panel displaying the Help documentation for the systemd-xdg-autostart-generator.

The isd interface shows the systemctl action menu open, listing options such as start, stop, restart, edit, enable, disable and mask.

Interacting with systemd is easily the most painful thing about using Linux. I won’t bash it ruthlessly here, but it is a complex beast. Not only that, working with it is difficult. The unit files are within deeply nested, layered directories, and altering them requires a special edit subcommand or a daemon reload. In addition, typing the command is probably the worst part—I just want something that will quickly restart or view the logs of services I’m testing. Cue Interactive Systemd (ISD), which makes interaction a breeze.

ISD is a Python wrapper around common systemd operations, like start, stop, restart, view logs, and a dozen more. It has an interactive (live) search for unit files and a split-panel layout to see additional information. Its navigation takes a little getting used to, but hitting the Tab key selects different panels, and Vim keys work out of the box. With some practice, controlling or reconfiguring systemd becomes second nature.

It’s fully themable and configurable (via YAML). However, it’s not the easiest to install. You can visit the GitHub releases page to download the AppImage or use the ubi command to automate it:

ubi -p kainctl/isd --rename-exe isd

I covered “ubi” in another article, showing extensively how to use it. If you’re often installing GitHub-published tools, you’ll find installation support a little spotty. Ubi solves this problem, and it’s something I reach for regularly. It’s simple and just works.

Topgrade

The glue for the fragmented package landscape on Linux

A terminal window shows topgrade running a self update and a system update, checking various targets and listing packages being upgraded with their versions and repositories.

Every ecosystem has its own way of installing packages, and then there are containers, application plugins, development tools, ad hoc setups, and so on. It’s becoming unmaintainable and ridiculous.

Topgrade is a tool that does its best to unify this fragmentation by providing one common interface to rule them all. While it’s not the most ideal solution, it does make life much easier until the day we resolve this problem (sometime in the next century). Topgrade unburdens us from custom upgrader scripts and provides a single entry point to keep our systems tip-top.

Using topgrade is as simple as running one command, topgrade, and it gets right to work. It supports Windows and macOS too, but on Linux, it will cache sudo credentials to prevent authentication prompts from blocking long upgrades.

In addition, you can configure it to run only the targets you want or to execute custom scripts (e.g., a ubi upgrade command).

Topgrade supports dozens of upgrade targets—from package managers to custom text editor frameworks—with some notable ones being VSCode, Nix, Pip, Pipx, NPM, Vim, Cargo, deb-get, Emacs, mandb, Ruby gems, snap, and even Windows targets like Microsoft Office and WSL. On my system—with no configuration—it upgraded DNF, snap, Distrobox, Flatpak, Nix, and a lot more.

Topgrade isn’t a niche project either; it’s very active, with over 2k commits on GitHub (that’s a lot) and 4.2k stars (modest)—so, it’s growing, and it looks like it will keep going.

Installing topgrade is actually quite easy. It offers over a dozen methods, including the AUR, PyPi, Copr, WinGet, deb-get, and even GitHub releases. If you have ubi on your system, you can install topgrade with:

ubi --project topgrade-rs/topgrade

But if ubi is not for you, there are many methods to choose from. Visit their GitHub page for more information. Ouch is super-easy to install and use. Beyond the instructions mentioned, there is little to talk about. It does one job and does it well.

The other two applications are more complex and deserve some practical use to understand. ISD is annoyingly difficult to install through automated methods, but it does provide an AppImage. Topgrade is the most useful utility of the three, and it’s by far the largest project. It’s truly impressive how many package ecosystems it supports, and it should be on every Linux user’s system.

Tip solutie

Permanent

Voteaza

(17 din 33 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?