What kind of apps benefit best from CLI? GUI?
I see that Arch users tend to be more practical/efficient users and I was wondering what kind of apps benefit best from being CLI-based or GUI-based. The approach for some users is to keep every app CLI-based and I don't think that's the best approach--for some kinds of tasks, perhaps GUI-based tools are more efficient. I'm still new to Linux so I don't know many of the good applications available but I'm hoping to learn what kind of tasks are more efficient when using a CLI-based app vs. a GUI-based app.
For example, a GUI-based browser might be more appropriate to support some of the things done on the browser. On the other hand, editing text quickly may be better suited for a CLI-based app such as emacs or vim. What about things like file manager, music player, video player, image viewer, rss reader, etc.? For those experienced with CLI-based apps, perhaps you still use a GUI file manager because you can get certain things done quicker?
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- 4n6nit
16 comments
The browser is the biggest one for sure. I like to use GUI video players as well, but use moc for my music. I do have a GUI file manager, but when I want to mass convert/move/copy/whatever, the CLI is faster, same with mounting usbs and making backups.
For example, would you rather click to the right folder(+- 10 mouse clicks), right click your tarball and choose the right extraction method, or just navigate to the folder which you know already because you downloaded the file there and enter
Yea, for that specific task the CLI is definitely more efficient. But what about sifting through a bunch of videos, documents, or pictures, playing/viewing them, then delete some of them and moving some of them in different directories?
If we are talking about files that have similar names of the same structure, maybe a simple command involving basic regular expressions is useful. If we are talking about moving all or none of the files with something in their names (perhaps all files beginning with the word "The" and all files ending with ".mp4") then these can still be managed efficiently using the CLI).
However, if we are talking about some files of a certain structure in the same example, I'm not familiar with any commands that can do that quicker than just CTRL+clicking the files on the file manager then performing an action with them. It seems like no matter what, I would have to type all those files out (even with Bash completion, it seems to still be a far less efficient than a GUI-based file manager). I don't know whether this is a valid point to use a GUI-based file manager then because I don't have enough experience with more specific CLI commands.
Also, I'm not sure if the best CLI-based file managers support thumbnails or image previews, which I would categorize as an essential function of a file manager unless it can cooperate with another program like feh to achieve the same thing. I'm still considering whether the CLI-based "ranger" file manager is worth using (i.e. is it a good CLI-based file manager but with the limitations of CLI-based applications created with the purpose of not being a GUI tool or is it a good file manager itself that happens to be CLI-based?
At least ranger can do all the things you mentioned. I haven't used a gui based file manager in a long time because I find ranger to be very efficient
TL;DR That largely depends on the use-case, target audience and program complexity.
For example a simple text editor, like gedit, isn't a terribly complex application.
But its targeted audience are inexperienced users who just want to type down a little text. Or perhaps edit some source code, which may be why it comes with code highlighting. But the GUI is designed to be accessible and intuitive. It shouldn't require any introduction. Some of the more rarely used function may be a bit hidden.
vim and emacs on the other hand target power users. They aim for efficiency and speed. And they are willing to learn the complex commands these tools offer.
More complex on the other hand, like a video encoder, may be harder to put into a GUI and possibly only at the cost of fine grained configuration options. The output of ffmpeg -h full is easily 30 terminal pages long. And that's just the options with a single sentence of explanation. If you'd try to make all these options accessible via a GUI you'd probably end up with the most cluttered clusterfuck of a GUI imaginable. Handbrake however makes many of them available as handy presets. You lose the possibility to access every option at all times, but in return you get an accessible interface that offers sufficient control for most cases. And for those cases it doesn't cover you can still type in the command line options manually and create a new preset with them, so they're covered too.
In all user experience design often deals with psychology and perception and is a lot less trivial than many programmers make it out to be. Just because you, as a programmer, think that this is a perfectly good place for a config option or a menu doesn't mean a new user of your program will.
Good answer, but I kind of went into the direction of assuming most Arch users are power users who seek efficiency and speed and are willing to invest time to learn tools in order to maximize their potential. For example, I noticed that Arch users are significantly more likely to use window managers (generally accepted to be more efficient if a user is comfortable with it) and CLI-based tools like ranger and mpv. than for example Ubuntu or Linux Mint users. Since these users have a tendency to seek efficiency and are willing to invest time to learn/customize the tools, I thought it would be best to ask about what kinds of tools they found are probably more efficient using CLI vs. GUI.
I think most users decide per use-case which program they use. For example I mainly use a GUI file manager for randomly accessing files, but when there's batch or heavy-load processing involved I quickly open a terminal and run some commands.
So it's basically just another 'What program do you use for XY?'
CLI/TUI: vim, ranger, moc, mpv, newsbeuter, mutt, rtorrent, mps-youtube
GUI: browsers, spotify
Depends on what you're doing. I've got firefox and links: firefox is great for feature rich sites, links is great if I just turn my PC on to look something up without JS or other nonsense, and means I don't need to start X11. There's benefits to both in different circumstances.
I agree, what if you're a Netflix power user like my wife? No way in hell she's gonna do any CLI based stuff. On the other hand, I run a business and I prefer Linux to windows so most GUI stuff I do involves researching clients on google which generally leads to LinkedIn or some corporate/gov website, plus writing emails, and occasionally running a win7 vbox so I know my documents and presentations will look correct on other computers. Most CLI stuff I do is run pacaur or delete files dangerously via sudo rm -rf when KDE has a brainfart. I even run daily systemwide backups through a GUI front end that runs with systemd. Not everyone is a neckbeard or a python expert so CLI can get cumbersome. Although, now that i think about it, my favorite use of CLI is a hybrid setup. I will open dolphin then hit 'F4' and run my commands from there. I really enjoy having konsole bounce to whatever directory I'm in especially if I'm running dolphin in split mode.
This is entirely subjective, and there are already many threads about "which program to use for x"
Since you seem curious about the CLI, check out /r/commandline
Note that CLI != TUI. CLI is single-line commands, TUI is "text/terminal user interface". Example: I would consider mutt, vim, ranger, etc. to be TUI, not CLI. Each of these has a CLI within the TUI.
Personally, I have been migrating to CLI/TUI programs as much as possible over the past year, where it makes sense and is more efficient. My goal is to use my keyboard for almost everything. I really like readline controls for text entry, and I get annoyed when they're not supported.
Ranger is without a doubt the most efficient and powerful file manager that I have ever used, especially when you get used to it and start exploring the advanced functionality.
Pentadactyl for Firefox is amazing and has entirely revolutionised the way I interact with my browser.
Weechat is an excellent IRC program, and has some great plugins that make it even faster and more intuitive.
Tiling window managers are awesome when you get used to them and get a nice config set up. I use i3wm. If you're doing most things in terminals, look into a multiplexer like tmux.
Here's a screenshot of my angry-fruit-salad (but I like it that way!) setup (zoom to 100% or the font looks like poo). Tmux containing (clockwise from top-left): weechat, vim (two panes), ranger, mutt. Floating window with vim (spawned from pentadactyl on my FF workspace. The pentadactyl-spawned vim spawns as "sticky" in i3, so it follows when I change workspaces.
Personally, I don't really use GUIs for many things at all, because I have found CLI/TUI programs that I prefer for most things. GIMP is a notable exception.
Awesome, this is the kind of answers I expected. Will definitely be checking out those keyboard-related tools, much appreciated.
I am willing to call the CLI browser dead. I couldn't get lynx, links, elinks or w3m to work on any modern websites (most complain about lack of javascript). I like to use ncmpcpp for music handling, and file browsing will work since all interactions are essentially command-line stuff anyway (cp, rm, mv, ln, mount/unmount commands, etc). I don't use CLI video players (I like VLC) and CD ripping, if I do it in Linux, I do with Asunder (a GTK app), but abcde is a decent program if you want to do that.
Honestly, I do most file management from a command line (see what I said about the basic commands and interactions), and most other stuff is done by GUI tools simply because it's what I'm used to, and some stuff seems too archaic to be useful. I'll use mc as a file manager for some of its features (you can look into archives using its virtual filesystem stuff), but the only CLI apps I really depend on regularly are mpd, mpc, and ncmpcpp. And vim. GVim always feels kludgy, nano is easy, but unintuitive, and Emacs is too big to be useful for me, and I can't get my head around it.
The only programs I use that need a GUI is firefox and steam. Everything else I find more efficient in a terminal.
What? Hell no. Most people just read the wiki like robots and then come
complainingasking for help in here or in IRC when their computer breaks.i started with a guide but noting went as planned so i took it apart and did each stage on its own investigated or read-up on each section to try to understand it more. i never enjoyed installing an OS as much as arch ive had fun stayed up all night and been buzzing about it ever since - following the guide blindlessly isnt realy good for you. im glad noting worked as expected ive learnt so much and loved every second of it.