Why do you use the terminal?

Hi, everybody Recently, a guy noticed that I was using it and asked why? For me it because in Linux many things are done through the terminal because Linux has many different desktop environments

He also compared terminal commands with cheat codes in GTA and other games, he understands what benefits you take from them, but not from terminal commands

pelya,

To get shit done in general.

If I need to rename a file, yeah, I can do that by right-clicking it in the file explorer, and selecting ‘rename’ from the menu. Two files? Painful but doable. Three files? Oh hell no, I’m switching to my always-open-in-background terminal window, and write a quick c=1; for f in *.jpeg; do mv “$f” $c.jpeg; c=expr $c + 1 ; done and it takes twice less time than clicking things through with mouse.

And yes, I wrote that shell command off the top of my head on the first try and without edits.

callyral,
@callyral@pawb.social avatar

I usually just press F2 to rename things in a GUI

richieadler,

Doesn’t work in Finder.

exu,

The Thunar bulk renamer is relatively good, but recently I wanted to name images based on the capture date. Probably very tedious without the right GUI tool, while it’s just one line using exiftool in the terminal. (I don’t know it off the top of my head)

Similarly, I just extracted the audio only from a video using ffmpeg in like 10s.
ffmpeg -i video.mkv -c:a copy out.mka

tetris11,
@tetris11@lemmy.ml avatar

Just so you know, in emacs you can do mass rename of multiple files using dired-mode. Never use a for loop again.

Snarwin,

There's also vidir from moreutils, which lets you bulk-rename files in your $EDITOR of choice.

luthis,

I just discovered that I know emacs commands because I use them in the bash terminal all the time.

Hey look, it’s us:

odysee.com/…/interview-with-an-emacs-enthusiast-i…

tetris11,
@tetris11@lemmy.ml avatar

Libreadline

pelya,

It’s emacspiracy to subtly teach unsuspecting Ubuntu users the despicable ways of Emacs Lisp.

It all starts with learning 100 common terminal keybindings. And un-learning Ctrl-C.

pelya,

I’m sorry, I’m too old to learn emacs over my perfect knowledge of Midnight Commander.

The point of this topic was to tell why we are using terminal, and emacs is kind of terminal on steroids, there are like 1000 key bindings and the mouse is totally optional, you are proving the point even further.

tetris11,
@tetris11@lemmy.ml avatar

dired mode is very similar to mc

Snoopy, (edited )
@Snoopy@jlai.lu avatar

Because app manager doesn’t work well. And there are the feedback on terminal that tell you about missing dependencies or broken packages…The fact you get those verbose log help for doing web research and solve lot problems. On GUI installing app isn’t well done : it’s slow, they don’t tell you what they are doing nor why it fail.

The only limitation of terminal is when you want to work with file system. I need to see the tree and typing ls -a everytime isn’t efficient. Example, i’m doing a git clone on a server throught ssh. But i have no way to know its structure and check if i downloaded it in the correct directory. I need a visual that tell me this folder is here, has those writing permission, is a tar archive… So i use both : filezilla and terminal, gui and cli. In fact, they are both very useful, so there no point comparing gui and cli, they both serve well their purpose.

I’m using CLI and GUI. For example, if i want to chose the correct keyboard and check its mapping : gui. If i want to add sources and its gpg key : app manager gui. There is no way i would enjoy typing this huge command line with flags from my mind, and i do lot mistype. Or installing the stack lamp ? on windows it was amazing and faster than linux. next, next, done.

Luckly we can copy-pasta those commands.

Edit : updated my text.

tuhriel,

For filesystems I have another gripe: if I move a file to another directory and I want to swap to the directory I just copied the stuff to I have to enter the whole path again…

berryjam,

It’s very fast and nearly always gives me the results I want without extra bullshit. For example using bc or qalc to do a quick unit conversion vs launching a calculator app for the same purpose.

clemdemort,
@clemdemort@lemmy.world avatar

For me it’s because I get a lot of feedback, if anything I do goes wrong I know why. Also it’s usually faster

GustavoM,
@GustavoM@lemmy.world avatar

Why not? It’s simple, lightweight, has a lot of interesting commands that fills its respective niche really well (btop, for instance) and (the best of all) it doesn’t explode my PC everytime I run such commands.

Luffy879,

Why should i open discover, wait half a year for it to load, search for vlc, wait half a year, look if its not a flatpak, realise its a flatpak, repeat

If i could just type sudo pacman -S vlc?

Or search how to update my grub config if I could just type grub-mkconfig -o /mnt/Boot/grub/grub.cfg?

moonburster,

Because googling a command line works way better and faster than any other form.

Mio,

Because there is no native gui. For most things to configure in Linux there is a webui but not a simple Gui built in. Configuration files like squid.conf smb.conf nginx.com… then we have logs but here I think I never checked for a Gui, does it work for remote ssh easily? Can you restart service easy?

normalexit,
  1. Scripting is easier. Apps and commands can be composed together in simple repeatable scripts.
  2. looks cool.
  3. Remotely administer machines with the same interface and little lag.
neytjs,

I use the terminal in a variety of circumstances (like working on Node.js and other programming projects) where there is either no good GUI alternative or using a CLI is actually faster. I’ve been using computers since 1989 and my first operating system was MS-DOS, so the thought of using a CLI when necessary doesn’t bother me.

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

Nice choice. Try to stick to the standard repository, kinda like the Play store on android.

I believe Mint tries to have minimal dependence on the command line. But usually it’s easier to help others solve problems with the command line since that is easier to write out than how to click through menus. So don’t let it scare you too much.

The internet is a friendlier place now, at least in the linux help-o-sphere. People don’t let others post destructive “lessons” for people to learn anymore.

That was comment I wrote in a thread about distro recommendations. I think it provides a context in which CL has a clear advantage over GUI.

gornius,

If you know how to use git, you will know how to use docker (provided you know what you want to do). They are completely different programs, yet you can quickly grasp the other instinctively.

Now, Photoshop and Blender - they are also different programs, but if you know Photoshop, you still need to relearn Blender’s interface completely.

This is why I prefer terminal programs in general. Unless it’s more convenient to use GUi, i.e. Drag&Drop file manager, some git tools etc.

superbirra,

eh?

manito_manopla,
@manito_manopla@lemmy.ml avatar

Because it’s fun

Merulox,
@Merulox@lemmy.world avatar

This and work are the only real answers

princessnorah,
@princessnorah@lemmy.blahaj.zone avatar

Hardly. I self-host a bunch of VMs on a home server. It would be a waste of resources having window managers running them just so I can click around once in a while. Also, it takes way more time to set up a container in Docker Desktop compared to just copying across a command to the terminal from a setup guide.

technologicalcaveman,

It's an one in all tool. I like that I can do almost everything through one program.

HurlingDurling,

Because it’s the only way for me to change the color of my rgb keyboard /jk but it’s true tho

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • DreamBathrooms
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • thenastyranch
  • modclub
  • anitta
  • mdbf
  • tester
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • provamag3
  • normalnudes
  • Leos
  • cisconetworking
  • megavids
  • JUstTest
  • All magazines