Trends in the modern command line
Command Line – Modernization
© Lead Image © elcabron, 123RF.com
Command-line applications have modernized since Bruce started writing about the command line 16 years ago. In his farewell column, he covers some of the recent innovations.
Sixteen years ago, when I began writing about command-line applications, the basics seemed mostly fixed. Basic commands such as cd, grep, and ls, as well as the configuration files in /etc, had changed little since the heyday of Unix, and many man pages still bore the original author's name. Little did I guess that the command line was about to undergo a series of modernizations. Some of the changes were due to new technologies and the obsolescence of others. Others were designed to make the command line more accessible to the growing number of desktop-oriented users. Today, while the time-honored commands remain the defaults, they are increasingly being challenged by innovative alternatives. What follows are some typical examples of the recent innovations.
Edited and Revised Commands
At the most basic level, recent years have seen a restructuring of basic commands. One of the most noticeable examples is the rethinking of apt-get, the well-known package manager for Debian-based distributions. The rethinking began with Ubuntu's Advanced Packaging Tool (APT). Not a complete replacement, APT is a stripped down version that covers the most common use cases and incorporates a few apt-get utilities under more accurate names, making users more aware of them. For instance, apt-cache is divided into search and show, while dpkg-query becomes list. In addition, apt-get's countdown for operations is replaced with a progress bar, which is more common in modern computing. However, the output of apt-get remains unchanged, and apt-get is still needed for some more advanced functions.
Nala (Figure 1) takes APT's revisions even further. Like APT, Nala simplifies basic commands and uses a progress bar. It also incorporates the netapt-apt utility as fetch to find the fastest mirrors, with the option to prioritize them by Debian-derivative and download packages in parallel. Also, like Fedora's DNF, Nala includes a history that can be convenient when troubleshooting. However, the most noticeable feature is Nala's rewriting of output. Not only does Nala color feedback and arrange it in boxes, but it rewrites output to condense it and make it more readable. For instance, where apt-get might show "After this operation, 12.4MB of additional disk space will be used," Nala would simply show "Disk space required: 12.49MB." Although the difference is small, Nala's version is shorter and easier to comprehend.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome Working on Test Center App to Make Testing Easier
It's now possible to test experimental features on the Gnome desktop without worrying that you'll break things.
-
New Vulnerability Discovered in Linux Kernel
Hiding out for nearly 15 years, the Ghostlock vulnerability allows a standard logged-in user to gain root privileges.
-
New Linux Flaw Lets Attackers Escape VMs
A 16-year-old vulnerability allows an attacker to escape a virtual machine, gain access to the host, and execute malicious code.
-
Hannah Montana Linux Is Back!
Developer Noah Cagle decided the world needed the once obscure but beloved Linux distribution and gave it a decidedly pink refresh.
-
System76 Refreshes the Lemur Laptop
If you're looking for a laptop with tons of power and battery, look no further than the latest iteration of the System76 Lemur Pro.
-
More than 43 Million Lines of Code in Linux Kernel 7.2
Using the cloc utility, Michael Larabel of Phoronix discovered that Linux kernel 7.2 has over 43 million lines of code.
-
Kubuntu Focus Goes Ultra
The Kubuntu Focus team has upped the performance ante of its M2 and Zr laptops with the latest, greatest CPUs from Intel.
-
Linux Gamers May Soon See Less Mouse Lag in KDE Plasma
Gamers using KDE’s Plasma desktop have been suffering from a slight input delay in mouse movement that could lead to getting fragged.
-
Three Lines of Code Improve Linux Storage Performance
A developer changed three lines of code, giving Linux storage performance a 5% bump.
-
AUR Hit Again with Malicious Packages
Once again the Arch User Repository is plagued by a high volume of malicious packages.
