this post was submitted on 26 Mar 2026
37 points (95.1% liked)
Linux
64140 readers
71 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There are many modern alternatives to common Unix commands, often written in rust, or provided in Nushell, that showcase that. Here are some common themes I like:
Good defaults: You shouldn't have to memorize
tar -xzvfjust to extract a tar file; The thing you're most likely to want to do should be the default. But other use cases should still be achievable through the use of flags. Make simple thing easy and difficult things possible.Subcommands: It helps separate and discover the different functions of a CLI. Paired with a help subcommand, you can quickly look up information for the subcommand you're actually interested in.
Domain specific languages: Many problems already have a solution in the form of a DSL, such as Regex or SQL. My favourite example for this is
httpie, which lets you specify the type, body and parameters of an HTTP request without touching any flags.I also much prefer long flags over short ones, because they are self-documenting.
Anything to replace firewall-cmd? (I know about ufw but it just feels too simple for my use case).
firewall-cmdcommands are all fucked up and it feels like they use different verbs for very similar actions. Plus- - helpis a few miles long which is not helpful. I just wish that it would have subcommands. Something likefirewall-cmd zone public infoDoes no one read man pages anymore? This is not a personal attack but I am baffled people don't set up bash completion correctly and then can't "discover flags" (or just read the manual).
I would not want tar that automatically "does what it thinks I want" useful… am l out of touch or the kids being wrong
I actually like tar. Yes, it could have a default, but its also from another time. And remembering Xtract Zip File is not that hard. (v is for verbose for those wondering)