I know that GUI does not cover most of functionalities, for good reasons - being specialized to task (like files app), it provides more fine-grained experience.

Yet, I find that there are common commands which is terminal-only, or not faithfully implemented. for instance,

  • Commands like apt update/apt upgrade might be needed, as GUI may not allow enough interactions with it.
  • I heard some immutable distros require running commands for rollbacks.

These could cause some annoyance for those who want to avoid terminal unless necessary (including me). Hence, I bet there are terminal emulators which restricts what commands you could run, and above all, present them as buttons. This will make you recall the commonly used commands, and run them accordingly. Is there projects similar to what I describe? Thanks!

3 points

Interesting idea. If you really break it down, the “terminal with command buttons” is similar in concept to saving each of the commands as a script and putting those scripts in a directory to act as “buttons.”

I’ve also seen some programs such as Kopia, a backup tool, that provide a GUI with the equivalent terminal commands for what is bring done shown at the bottom.

I don’t think what you’re describing exists, probably because experts don’t need it and beginners would prefer a full GUI.

There is Nushell, which promises more helpful error responses for the terminal, but its too early for it to be targeted at beginners in my opinion.

permalink
report
reply
3 points

As much as I love nushell it will ever be too early for beginners, POSIX compliance is a big problem there. They have their very good reasons to not be POSIX compliant, but someone starting out should familiarize themselves with the most common pattern first before jumping to something completely different that will prevent them from running code snippets they might find online.

permalink
report
parent
reply
4 points

Just create GUI application for the things you want. There’s already lots of them.

Otherwise there’s always “–help”.

permalink
report
reply
0 points

I mean, there are already tons of applications that lets you e.g. update, like apt update/upgrade does.

One issue with it is that it fails time to time, and error messages the GUI usually conveys are subpar. That’s why I think you cannot avoid terminals. I just want some middle ground for that.

Also, ik this is nitpicking but… while apt is good on this front… what about the CLIs whose --help gives hundreds of lines?

permalink
report
parent
reply
4 points

I mean, there are already tons of applications that lets you e.g. update, like apt update/upgrade does.

Bingo.

while apt is good on this front… what about the CLIs whose --help gives hundreds of lines?

Read them. There’s a reason some programs have many options. Avoiding the CLI isn’t the solution.

permalink
report
parent
reply
2 points

The apps just fail and crash randomly, any linux users cannot entirely rely on them. Well, I guess linux is destined for 2% of desktop users, who can use terminal on a daily basis, and current rise is just a fluke.

permalink
report
parent
reply
1 point

kde’s discover and gnome software have both worked fine for me, for the most part

permalink
report
parent
reply
7 points

Coming back to this with thoughts. What you’re describing sounds a lot like a menu tree.

“Press 1 to do this, 2 to do that, 3 to go to submenu A, 4 for B,” etc. 1

“You have pressed 1. Do you want to turn on option ABC? [Y / n]” Y

“Do you want option QWERTY47? [Y/n]” N

“Are you sure you want to run notthebees --abc --no-qwerty47? [Y/n]” N

“Aborted.”

It sounds like a standards problem waiting to happen because no two menus will be alike, but hey, things like this can and do exist, and setting one up isn’t that hard, only time consuming.

permalink
report
reply
3 points

Something like this can kind of be achieved programmatically by unraveling bash completion arguments and loosely parsing terminal help strings.

They aren’t all formatted uniformly though, so you’ll need to come up with a filtering mechanism to prevent returning garbage. You’ll also always be a little out of date…

permalink
report
parent
reply
4 points

This was my thought exactly. And I also had the same assessment that having various arguments be context aware would be challenging, since some have sub-arguments of their own (with further sub-arguments of their own, etc.) but can sometimes be strung together all on the same line. How do you determine if someone wants an ascendant argument or a descendant argument when you’re three layers deep into the tree?

You would have to make opinionated decisions, which was the whole reason to avoid scripts in the first place. Seems like it would be better to just make executable scripts (which is what Fedora Atomics basically do with the just command) or gamify learning how to work in the terminal.

permalink
report
parent
reply
15 points
*

I know that GUI does not cover most of functionalities

specialized to task

Yet, I find that there are common commands

present them as buttons

Congratulations you just reinvented the GUI while trying to get away from it at the same time.

Perhaps something a little more “in-between” the two might be a GUI that allows running arbitrary programs… something smarter than a launcher but more generic than a purpose-built function-limited interface… if such a thing can even exist.

permalink
report
reply
0 points

What kind of GUI allows you to launch CLIs with certain configurability?

permalink
report
parent
reply
3 points
*

I don’t think there is one yet… it would need some kind of way to understand the possible options and parameters for any given CLI program, and without a standardized interface for that, error-prone scraping of --help or just hard-coding popular options is probably the best you could do. Hopefully it wouldn’t end up looking something like the Scratch programming IDE though.

This reminds of jc which is kindof the opposite where it scrapes the output of common commands to present a more unified (JSON) syntax for other programs to consume and automate better.

permalink
report
parent
reply
0 points

Hmm, --help parsing can be screwy, I guess. Maybe there is a way through autocompletion machinery.

permalink
report
parent
reply
1 point

There are already libraries like clap that allow the developer to specify all their arguments including short and long variants and description strings. I think some of them will automatically generate --help based on the specified options. I could imagine a library that takes the same specifications and makes an interactive menu or a tui form out of them. It’s an interesting idea.

permalink
report
parent
reply
9 points

This actually exists, but for a different operating system. The AS400 (aka iSeries) had a command line where programs had a standard way to specify parameters, so that pressing a prompt key (F4) would allow you to build the proper command line by filling a form. I do miss that, pity it doesn’t exist for Linux.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

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

Community stats

  • 8K

    Monthly active users

  • 3.7K

    Posts

  • 48K

    Comments