this post was submitted on 26 Mar 2026
56 points (96.7% liked)

Linux

64117 readers
878 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Regardless of what the app does and whether the thing that does is particularly useful, powerful or important for what you need to do (or even well implemented), what is a command-line interface that you had a particularly good experience both learning and working with?

In other words, I'm thinking about command line interface design patterns that tend to correlate with good user experience.

"Good user experience" being vague, what I mean is, including (but not limited to)

  • discoverability--learning what features are available),
  • usability--those features actually being useful,
  • and expressiveness--being able to do more with less words without losing clarity,

but if there's a CLI that has none of those but you still like it, I'd be happy to hear about it.

Edit: Trying to stress more that this post is not about the functionality behind the tool. Looks like most of first responders missed the nuance: whether app x is better than app y because it does x1 ad x2 differently or better does not matter; I'm purely interested in how the command line interface is designed (short/long flags, sub-commands, verbs, nouns, output behaviors)..

you are viewing a single comment's thread
view the rest of the comments
[–] thingsiplay@lemmy.ml 0 points 1 day ago (1 children)

But its just a matter of 2 dashes. It shouldn't be a problem.

[–] Aatube@thriv.social 3 points 1 day ago* (last edited 1 day ago) (1 children)

You misunderstand me. It's not about typing it. It's not conforming to prevalent Linux paradigms which creates artificial confusion and learning difficulties. There's a reason it's git pull and not git -L, perf annotate and not perf -A . It's a great semantic difference like <b> vs <h3>. I'm saying this as an Arch user.

[–] thingsiplay@lemmy.ml 1 points 1 day ago (1 children)

I don't think it would make ANY difference if the option was named git --pull instead git pull (you don't have to use the single uppercase). That is NOT the same semantic difference between and , because it (the pull example) operates the same as before. The only difference are the two dashes. I don't see how this creates confusion or learning difficulties.

[–] Aatube@thriv.social 2 points 1 day ago (1 children)

The prevalent way (except for ancient tools like tar), and thus the norm, is that options are meant to be optional and subcommands are like old "do one thing" Unix commands (do completely different things, can have completely different set of arguments) but you prepend the name of the software in front of them. You can see the impact of this reflected in documentation for argument parsers: https://docs.python.org/3.14/library/argparse.html#%3A%7E%3Atext=Required+options+are+generally+considered+bad+form+because+users+expect+options+to+be+optional https://gobyexample.com/command-line-subcommands#%3A%7E%3Atext=Command-Line+Subcommands-%2CGo+by+Example%3A+Command-Line+Subcommands%2Cthat+have+their+own+flags.

[–] thingsiplay@lemmy.ml 1 points 1 day ago (1 children)

I know how subcommands work. But that is not the point I am making. Having two dashes in front of it or not like pacman remove or pacman --remove does not change how the command operates. It is literally having two dashes or not and therefore is not an issue.

[–] Ephera@lemmy.ml 3 points 18 hours ago

Hmm, I don't know about Pacman, but for example openSUSE's zypper remove has a --clean-deps flag, which doesn't exist on the other subcommands. So, it wouldn't make sense to have it be zypper --remove --clean-deps...