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
-
UN Creates Open Source Portal
In a quest to strengthen open source collaboration, the United Nations Office of Information and Communications Technology has created a new portal.
-
Latest Linux Kernel RC Contains Changes Galore
Linux kernel 7.0-rc3 includes more changes than have been made in a single release in recent history.
-
Nitrux 6.0 Now Ready to Rock Your World
The latest iteration of the Debian-based distribution includes all kinds of newness.
-
Linux Foundation Reports that Open Source Delivers Better ROI
In a report that may surprise no one in the Linux community, the Linux Foundation found that businesses are finding a 5X return on investment with open source software.
-
Keep Android Open
Google has announced that, soon, anyone looking to develop Android apps will have to first register centrally with Google.
-
Kernel 7.0 Now in Testing
Linus Torvalds has announced the first Release Candidate (RC) for the 7.x kernel is available for those who want to test it.
-
Introducing matrixOS, an Immutable Gentoo-Based Linux Distro
It was only a matter of time before a developer decided one of the most challenging Linux distributions needed to be immutable.
-
Chaos Comes to KDE in KaOS
KaOS devs are making a major change to the distribution, and it all comes down to one system.
-
New Linux Botnet Discovered
The SSHStalker botnet uses IRC C2 to control systems via legacy Linux kernel exploits.
-
The Next Linux Kernel Turns 7.0
Linus Torvalds has announced that after Linux kernel 6.19, we'll finally reach the 7.0 iteration stage.
