Trends in the modern command line

Command Line – Modernization

© Lead Image © elcabron, 123RF.com

© Lead Image © elcabron, 123RF.com

Article from Issue 300/2025
Author(s):

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.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line – Nala

    The latest iteration of Debian's package manager makes it easier to manage packages from the command line with more readable feedback, parallel downloads, the ability to find the fastest mirrors, and an updated history list.

  • Nala

    The Nala front end for Debian's Apt package manager combines the reliability of the Apt tools with easier to read output and speedier downloads.

  • Evolutionary Tale

    Over the past 30 years, the apt family has played an important role in dependency resolution for Debian distros.

  • Distro Walk – Rhino Linux

    Rhino Linux, an Ubuntu derivative, rethinks Linux conventions.

  • New Commands for Old Purposes

    As the standard core Linux commands have become more complex due to revisions, new commands have risen to take their place. Bruce looks at seven of these modern commands, plus a terminal emulator.

comments powered by Disqus
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.

Learn More

News