this post was submitted on 04 Jan 2025
119 points (99.2% liked)
Linux
48878 readers
1036 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Use GUIs for all the things.
Linux users are obsessed with the command line because it's faster if you can type fast and remember everything. If you can't, GUIs are actually much much faster because you are visually guided towards what you're looking for and have to spend little time looking for the correct commands and syntax and everything.
No. That's just wrong. You only need to type ONCE and you don't have to remember it all, that's why
reverse-i-search
(aka Ctrl-r) is so powerful. It allows you to search within your command history so you only need to remember few letters of the command (which you can annotate, e.g.commandname parameter #it does this
) and can even edit after, e.g. changing parameters.But, more fundamentally, that is NOT the point of the command line!
The whole point of the command line is... to be able to repeat things, namely to script actions that can be customizes and combined to YOUR unique needs. So it's absolutely not about typing speed or memory. In fact, once I do have a good command, what do I do? I save it as a script precisely so that I do NOT have to type it again. Think of commands as Lego bricks that can be combined to together, build on top of. That is basically impractical with GUIs. Sure there are some tools to automate the click on GUIs but it's unreliable, nor can it be easily shared.
PS: I'm not saying anyone should use the command line over GUIs. I'm not being prescriptive. I'm only trying to clarify what the point of the CLI is.
TL;DR: command line is about combining tools to your unique needs, repetitively and reliably.
True of course. If you look at my comment though, I haven't said that speed is the point of the command line. Just that Linux users are obsessed with it. For most users most of the time, the repetition/automation is not the point and ability to write scripts is not the most important thing. And you can combine tools with GUIs as well, it's just slower. Same with reliability, GUIs don't have to be and usually aren't unreliable, so command line only has the automation and speed going for it.
I believe that is exactly the problem in this thread. The command history only works if you remember in the first place.
Well if that's the case then it'd be like somebody buying a bike, removing the wheels, and complaining that truly it's not as fast as a car or as convenient as walking. Sure, it's true but... if one is missing the point of a tool then they can't really complain about how "bad" it is.
Honestly I do not know how the CLI is most popularly used. I do have usage data for that (and I'm not sure who might, maybe Ubuntu?) but again, if people are using it to "type fast" then they are wrong.
Regarding memorizing and the problem of this thread, yes it IS a problem but that's precisely why I also commented https://lemmy.ml/post/24395107/15908795 before, namely that someone learning the CLI (namely ... ALL of us, even people like me who have been using it for decade, at home and professionally) should actually admit they are learning and thus rely on tools as they otherwise normally would.
This is so true.
I have been using Linux since the mid 90s. Exclusively since about 2005.
I am obviously getting old now. But my willingness to remember the structure of rarly used commands/options. Has always been limited. If its not something I do often. It generally involves looking up man pages. And more often then not a GUI is just faster.
GUI has improved hugly in the time I have been using Linux. To the point that now it really is quicker if I'm not already in the terminal.
But as soon as things get to the multiple command level. Or complex enough that looking up is needed anyway. Typeing is just faster. Being all in one window makes a huge difference. But also once things get to the need to look up point. Command lines are just easy and quick to share online etc. So it tends to be the easy way for forums etc to share guidelines etc.
For all GUI has improved. Text is still one of the easiest ways to share data. It allows things to be organised and jumped around from point to point.
I am teaching an ex GF to use a new Linux PC for the first time. (Put it together as a wedding gift)
I tend to tell her to switch between GUI and command line as best suits her. As long as you understand the goals of each step write or wrong is whatever seems easiest for the user.
But it is important t to become comfortable with the terminal. Because this is how others will share info. And she will need to be able to understand what they are telling her to do.
Online trolls still exist. So understanding things like
sudo rm -rf /
Is essential before typing it.
very cunning revenge!
Grins.
Nah. If i wanted revenge id put windows on it.
They just need an internet PC with Libreoffice.
Hybrid is best.
I use the GUI quite a lot.
But some things are just easier in CLI, especially if you have to do that thing often.
The other reason to use the command line is automation, it is very easy to write a bash script and run it as often as needed, if every day at midday you want to update something CLI is much easier.
e.g everyday at 2am, my rsync script runs to backup my important files.
e.g 2, I have a small script to combine all the pdf's in the current directory into a single file using pdftk. It is so much faster than any graphical way.
Of course, I didn't make some kind of point about the general use of GUIs and CLIs, I just said that GUIs are much faster if you can't remember commands, which is the problem in this thread.