7 ms·
Most the things in this list are things that you technically don't need a GUI for, but a GUI is so much better that doing it in command line is pointless. For i
by gruez 6y ago
Most the things in this list are things that you technically don't need a GUI for, but a GUI is so much better that doing it in command line is pointless. For instance, you could do all those file operations in the terminal, but chances are you're already browsing files using a GUI file manager so opening a terminal to do those things is pointless. Terminal is great if you want to do something complicated that a GUI program can't handle, or you need some sort of automation (ie. programming).
- unnouinceput 6y agoQuote: "..you want to do something complicated that a GUI program can't handle..." Name one thing that a GUI program can't handle, I dare you. Me, on the other hand, I can point you to a trillion dollar business that uses only GUI and not a single CLI, to say the least.
- Kranar 6y agoThe numerous examples given are the automation and composition of basic operations.
- KeepFlying 6y ago"can't handle" is super subjective. Sure a GUI can have every feature available and be super capable. But it can also lead to it taking 10+ clicks to do something, and another 10+ clicks to do it again. Super painful. So just because companies have proven that GUI is successful and capable, it's still possible that it "can't handle" a lot of things nearly as effectively as CLI in some cases.
- kaba0 6y agoA GUI doesn’t disallow using hotkeys. Hell, it has superior opportunities for using both keyboard and mouse. You don’t have to imagine a dumb ok and cancel button on a window, what about blender? It extensively uses intuitive hot keys, and would be plain impossible to do anything 3D modeling related in a CLI.
- theamk 6y agoYou can write a GUI for anything, so if you are willing to spend enough time searching for software, you can solve anything with GUIs. But the big difference is with CLI, there is no need for third party software, the functionality is right there. Here is a simple task which can easily occur in business: you have a folder with thousands of files named somewhat haphazardly. Copy all the files with have numbers 2011 to 2019 anywhere in the filename to an usb stick.
- aimor 6y agoI think there's a golf game that could be made from these type of real world puzzles. I would search for "2011 2012 2013 2014 2015 2016 2017 2018 2019", select everything that shows up in the search results, and copy those to the USB. Wonder what I'd do with millions of files though.
- ben509 6y agoGoogle has been around since 1998, and after 23 years, their search is still a CLI stuck in a form. > Me, on the other hand, I can point you to a trillion dollar business that uses only GUI and not a single CLI, to say the least. No you can't. There are 5 companies with a market cap over a trillion. We can easily rule out Apple, Microsoft, Amazon and Google as they have all developed CLIs. That leaves Saudi Aramco. Doesn't take long to see they have openings for CLI heavy jobs.[1][2] [1]: https://apply.aramco.jobs/us/jobs/1786333?lang=en-us https://apply.aramco.jobs/us/jobs/1786333?lang=en-us [2]: https://apply.aramco.jobs/us/jobs/1780310?lang=en-us https://apply.aramco.jobs/us/jobs/1780310?lang=en-us
- alphachloride 6y agoA CLI stuck in a form is a GUI. You got a button, links etc
- unnouinceput 6y agoYes, I can. Game industry. See my other response to one of your siblings.
- michaelmrose 6y agoYou said a business not an industry.
- unnouinceput 6y agoExactly, I said business, not company. Gaming is a business, Apple is a company. Understand the difference?
- michaelmrose 6y agoThe fact that nearly everyone misunderstood you indicates that you didn't communicate well. A trillion dollar business suggests a singular wherein a singular could be a single corporation or industry in common usage. Without surrounding context to the contrary it isn't trivial to distinguish the intentions.
- ttt0 6y agoBulk rename.
- avhon1 6y agoThere are actually a couple of good GUI bulk file renamers. I'm fond of the one built into xfce's Thunar file manager [1], but there is also ReNamer [2] and Ant Renamer [3]. [1] https://docs.xfce.org/xfce/thunar/bulk-renamer/start https://docs.xfce.org/xfce/thunar/bulk-renamer/start [2] http://www.den4b.com/products/renamer http://www.den4b.com/products/renamer [3] http://www.antp.be/software/renamer http://www.antp.be/software/renamer
- rank0 6y ago> Name one thing that a GUI program can't handle, I dare you. Pipe input/output between programs. Chaining cli tools is essential for my work and personal usage. > Me, on the other hand, I can point you to a trillion dollar business that uses only GUI and not a single CLI, to say the least. That's observably not true. Why didn't you just type out the name?
- unnouinceput 6y agoBecause it is obvious, but apparently not to the HN crowd. Let me name it then. Game industry, it's bigger than both music and film industry and it runs exclusively on GUI. Even text based games are GUI actually, not CLI.
- creata 6y agoYou said "a trillion dollar business", not "a trillion dollar industry" so of course people misunderstood you! And even though the game industry primarily makes GUIs, it still uses CLIs everywhere in the development process, so it's pretty silly to say that it "uses only GUI and not a single CLI." And the console that's present in just about every game doesn't seem very "graphical" either.
- unnouinceput 6y agoThat's their problem, not mine. Gaming is a business, Apple is a company. I heard plenty of times here on HN that Google's business is advertising. So go and argue this with the other million of post that uses this semantics.
- ben509 6y agoA UI presents a structure to enable the user to query and manipulate objects. A CLI represents that structure by accepting textual commands and presenting output textually. A GUI represents that structure by displaying objects graphically, showing their spatial representation and connection. And, traditionally, a GUI tends to show more structure up front while a CLI simply prompts you for a command. The distinction isn't perfect, but a text adventure game is well inside the CLI camp.
- creata 6y agoHere's an easy one: take all the files in a directory, including files nested in subdirectories, pick ten random ones, and open 'em in a new Firefox window. firefox (find . -type f | shuf -n10) I doubt your computer comes with a GUI program that can do that for you. My point is that CLIs can easily be plugged into each other whichever way you want, but GUIs (except in some niches like audio) aren't built that way for some reason.
- unnouinceput 6y agoI think you miss the point of API's regardless of your programming language. If it's used inside a CLI then definitely I can write a GUI program that does the same.
- creata 6y agoYou could write such a program, but my point is that it's a horrible inconvenience. CLI programs compose to the moon, but it's hard to get GUI programs to compose at all.
- fiddlerwoaroof 6y agoAlternatively, writing a program just is what you do at the shell with the find command, without building a GUI AND all the ceremony around getting a typical programming language needs to orchestrate processes.
- anthk 6y agofind ~ -iname Makefile -exec sed -i ´s,-g,,g´ {} +
- dbht 6y agoI do most file operations in a terminal because I can switch between my editor and the terminal without picking up the mouse. I do use a file manager to organize media files.
- cosmotic 6y agoThe mouse is not a requisite for a GUI file manager
- xupybd 6y agoVery true https://i3wm.org/ https://i3wm.org/. I3 is a great WM that allows you to avoid having to use the mouse. That said I now work in the Windows world. I find that if you are using the same tools day in day out then the keyboard is the way to go. If you have to use new tools every other week the GUI is hands down much better. Unfortunately in my role I'm doing exactly that.
- II2II 6y agoDifferent people will draw the line in different places. Take your example of file management: since I'm usually in a terminal, it takes far less effort to enter a command than it does to open up a graphical file manager and navigate to the desired directories. The other issue is that few file managers are as powerful as command line utilities. There are exceptions. I am quite fond of Directory Opus while using Windows since it feels like a program designed by people who understand the scope of file management. Alas, it is an exception rather than the rule. Most file managers facilitate basic functions then stop there. With the shell, that's not really an issue since you can always add another utility to your tool box.
- lupire 6y agoMac: open $dir Linux (whatever env provides this): xdg-open $dir
- II2II 6y agorm -rf scratch/ qmv -f do *.pdf find -name "*.epub" -exec mv {} ~/books/ \; cp *.c ~/remote/hostname/src # with sshfs The list can go on. The GUI may be better when you have to manually pick through a small number of files, but calling up a file manager to handle a single file or a bulk operation rarely makes sense (if you're already in a shell). EDIT: inserted line breaks
- elabajaba 6y agoWindows powershell: ii dir (eg. ii ./)
- cosmotic 6y agoThere's more than just effort to consider. Discoverability, confidence, error recovery, and consistency come to mind. You might be in a terminal, in the directory you're you want to copy a file within... $open ., type file name, command-C, command-C, command-W would do a great job, require minimal additional effort, but provide better visibility into the status of the copy, allow you to better handle file name collisions, allow you to retry, and be undoable. If you didn't know the correct program or arguments for zip, you could simply look around the menus and find 'compress'. Even scripting, you can use the best tool for the job. AppleScript or similar can be used to script GUIs and also for testing.
- dekerta 6y agoNo kidding. I laughed at this part: "STOP DOUBLE CLICKING ON A FILE " "Instead type '$ xdg-open file'" Yeah, because that's way faster and more convenient than double clicking on an icon. This one is great too: Don't open the file explorer! Instead you should type "find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" Seriously?
- userbinator 6y agoYeah, because that's way faster and more convenient than double clicking on an icon. It is if you happen to have both hands on the keyboard. That said, I usually navigate a GUI file explorer using the keyboard too, so pressing Enter to open a file is even faster. (This comment was submitted entirely using the keyboard.)
- chipotle_coyote 6y agoEven if you move your hands (gasp) off the keyboard to the trackpad or the mouse that is presumably very close by, typing that command is probably not faster and more convenient than double-clicking.
- saurik 6y agoThe real problem is navigating to the file... I can tab complete or otherwise hop my way around my hard drive much faster than I can visually find a target to click on (and frankly I am shocked that isn't true of everyone who knows how to use a terminal--obviously I appreciate the "easy for beginners" aspect--I feel like the GUI could only possibly be faster for a contrived use case that would never come up in reality... oh, I have one: if the files you are organizing are all images and they have useful previews! I totally use the GUI file manager to organize photo albums... but of course I am barely using the mouse as I do so ;P).
- noisem4ker 6y agoGUI does not imply mouse-only interaction. Any good file manager will let you browse using the keyboard, with typeahead for file selection and accelerators for the context menu.
- sethammons 6y agoJust about everything in that list I do from a terminal. But I practically live in the thing. I’ve literally had trouble finding my home directory in the Mac Finder UI. Never had that issue in the terminal ~
- tjpnz 6y agoFinder used to be much more intuitive yet Apple seem to do something on every macOS release that somehow makes it worse.
- asdff 6y agoJust today I had to give permissions to cron of all things to use the disk on my new computer. What do they think crontabs are used for?
- creata 6y agoI just use Cmd+Shift+G (go to directory) to get around anywhere in Finder. It's worked out well so far, and I can still use ~ to go to my home directory.
- em500 6y agoIt's in the "Go" menu, along with the keyboard shortcut. You can also put it in the sidebar, either via Preferences->Sidebar or dragging your home folder there. I'm guessing that the reason it's not there is that for most casual/GUI users, Documents/Downloads/Desktop (which are all in the sidebar) takes the role of /home in traditional Unix.
- subsection1h 6y ago> chances are you're already browsing files using a GUI file manager I haven't had a GUI file manager installed on any of my desktop computers since the early 2000s, and the last time I used one regularly was the mid 1990s. Hacker News in 2021: Where the "hackers" think that "doing it in command line is pointless."
- anthk 6y agoThey must be Smalltalk hackers...
- inb4_cancelled 6y agoAnyone know about a place like Hacker News, but without the gatekeeping?
- anthk 6y agohttps://lobste.rs https://lobste.rs, https://tilde.news https://tilde.news
- dagss 6y agoI am the opposite, haven't used a GUI file manager in...15 years? I am most certainly not "already in it". (Ok, with the exception of wanting to look at a bunch of images in thumbnail mode. Then I launch a GUI file manager.) The shell is where I "am" and launching a GUI seems more cumbersome than typing the command. In fact reading this post made me realize that using the terminal for file operations is not as common as I thought.
- fiddlerwoaroof 6y agoYeah, between emacs and the shell I do 90% of my file manipulation in “CLI” environments. Even when I use Finder, I use it like a CLI: typing and shortcuts for everything and minimal clicking. The only exception is that I occasionally drop files, urls and documents from GUI applications into iTerm, rather than type out the whole thing.
- dTal 6y agoDolphin file manager has a terminal built-in; the GUI follows the current directory in the shell, and vice versa. Best of both worlds! Never type 'ls' again.