I know we all enjoy being nerds and using commands (H4ckerman). But now that everything is either a gui or web based, is there really any use to terminal commands?

For example, on windows I never used powershell or cmd hardly ever. I realize now I probably could have. But Linux just drives me to use it more, which i like anyway (because let’s be honest, it makes us feel superior)

  • awful_neutral@mander.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    The terminal makes many functions easier and faster, it’s more consistent across updates and changes, can be automated with scripts and is much easier for developers to implement into software than a GUI

    There’s a learning curve, but there are real practical reasons for someone to use it over GUI

  • Cyborganism@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I have yet to find a gui that allows me to do the equivalent of running a find command with a regex to find specific files and run a set command to search and replace a string in one go.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      On Windows, there are a bunch of search programs like Everything that can probably do the search. For search and replace, most text editors like Notepad++ can do that.

  • dual_sport_dork 🐧🗡️@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Even outside of scripting and so forth, which I use a lot, often it’s far easier and faster to just cook up a wildcard string or a regex or whatever when you’re faced with a folder with eleventy bazillion files in it, only some of which you’d like to move somewhere else.

    Yes, you could point-and-click on all of those for the next hour and a half plucking them all out of your file browser window. Me personally, I’d really rather not.

    Other similar use cases abound.

  • Treczoks@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Many things are way easier on the command line than they could ever be in a GUI. Especially for processes that need repeatability, e.g converting a whole directory of images in a certain way.

  • TheDemonBuer@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I fixed a family member’s Windows PC once. Stuck in an update boot loop. Had to rebuild the bootloader to fix it. It took ten minutes once I looked up the commands online. He had already taken it to a PC repair shop and they said all they could do was reinstall the operating system. Honestly, these Windows people are like handicapped because they never really interact with their computers. They only interact with a kind of software nanny that keeps them away from the scary stuff for their own good.

    I love my terminal.

  • sunshine@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I use the terminal because text errors are much easier to parse, research, and discuss than GUI error states.

    also, it looks nicer than most GUIs, because of the great color schemes and CLI app designs that people make for us.

    also I use the fish shell and emacs and I have a lot of custom scripts I’ve built over the years, so my user experience is a delight, and my automation capabilities are greater than they would be if I preferred GUI-based solutions.

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Aside from what the others said, I think a big advantage for CLIs is also that they’re a lot quicker to develop and extend with functionality. So, while yes, there are GUI options for lots of tasks, if you need to do niche things, there is still a higher chance for there to be a CLI for that, or for a more general CLI to be feature-rich enough that it covers your niche use-case.

  • Katie@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Aside from the automation, which has been mentioned already, I tend to seek out terminal based solutions and heavily use it over GUIs because:

    • my wrists tend to hurt after using a mouse for too long (mouse use is now limited mostly to browsing the web and spreadsheets)
    • lower resource footprint means I can do more with less hardware
  • BartyDeCanter@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    While this feels like bait, I’m going to take it. Yes, there is a huge benefit to learning and using a terminal if you use a computer as a tool for creating and working instead of passively consuming entertainment. Organizing and searching files of any sort, building applications, writing without distraction, working with remote devices, and just generally using your computer as a tool instead of a fancy TV are all made easier, faster and more efficient if you can use a terminal. The unix philosophy gives you the ability to do things by stringing together a few commands that you might have to find a specialized program for, if it even exists in GUI land.

    That’s not to say the GUI’s aren’t great for a lot of things. They are! But they also lock you into doing things in a few predetermined ways rather than letting you develop the skills and techniques for exploring new spaces.

  • TootSweet@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    You can take my terminal when you can pry it from my cold, dead, hands.

    Any one-liner you put together, you can re-run trivially. You can rerun it with modifications trivially. You can wrap it in a for loop that runs it with different parameters trivially. You can stick it in a file and make a reusable Bash script. It’s far easier to show someone else how you did it (just copy/paste the text of your terminal session) than dozens of screenshots of a point-and-click adventure (and not in a good way) GUI app. Bash commands are easier over SSH than GUI apps over RDP or VNC or whatever. You can’t script a GUI app.

    I seriously find myself wondering why someone would you use a GUI for something you can do with a terminal? Learning curve is the only reason I can think of.

    I frequently find myself creating tools that let me do with a terminal what I formerly could only do with a GUI tool.

  • masterofn001@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Pipes etc.

    A GUI can’t combine commands from several different programs and move data to and from and use that with the ease and explicit nature of a terminal.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      GUIs can use pipes just fine. You tell it to write to a named pipe or similar device and the program on the other end will happily consume it.

      • Treczoks@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Yea, but try to set this up in an easy way, or to process more than one file.

        Bonus points if you can achieve this under Windows 😃

      • jj4211@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        But only if the gui very specifically designs for it. With a cli you can generally wrangle arbitrary command into a pipeline.

        • frongt@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          No, if it implements any standard file I/O, it’ll work. Write to a fifo and then consume it with the other application. Or write into the fifo from another application and read it with the GUI app.

          • jj4211@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            The point is that you can’t “pipe GUI output to other command”, the GUI would actually have to serialize things in a useful way and send to that fifo. Similarly you can’t send stuff to it’s stdin and expect it to do anything sane.

            Further, since you can’t seek() in a fifo, a lot of likely GUI applications involving files would break on trying to deal with a fifo. Also the typical GUI app on read doesn’t assume a ‘tail -f’ like approach to arbitrary file inputs.

            • frongt@lemmy.zip
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 year ago

              Yeah you can’t run a one-line pipeline, but you can still pipe between applications. Just a little more asynchronously.

  • leftzero@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    On windows, sfc /scannow, dism /Online /Cleanup-Image /RestoreHealth, and dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase are pretty much required to prevent that mess from blowing up…

    I’ve also had to use the command line to do some Exchange 365 stuff like forcing immediate archive population on 100% full inboxes whose users refused to delete any emails from…

    • bridgeenjoyer@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Could you elaborate ?

      I’ve always wanted to get into coding but what ive watched/read on something like godot or VBA was all clicking certain boxes in the gui and didnt interest me much. Are you saying like python and scripts ? That makes sense. I have no clue what programmers actually do since ive never been able to find something to apply it to

      • Badabinski@kbin.earth
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I wrote a program at work that gets deployed to hundreds of thousands of systems and is very hard to fully test or instrument. This program recently had a bug that was hard to track down. Using the command line, I connected to one of these boxes over ssh and ran a series of commands to detect the bug and dump details of what happened. Then, I took all those commands and turned them into a onliner that I could pass in over ssh, so I could get everything I needed for an individual maxhine. I then used xargs to run that command in parallel over every single one of the systems my code was running on and in the end, I was left with a nice directory of files whose name was the IP of an affected system, each filled with useful information. I started by manually running command over ssh, but the composable nature of the shell allowed me to transition that into a script in a matter of minutes.

        I provided a more residential example of why I exclusively use the terminal for file management in a different top level comment.

      • Poik@pawb.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Clicking? I spend most of my time typing. Even in Labview there’s some typing to do. And godot requires a substantial amount of code to go with the gui side, it just has its own text editor.

        But I mostly mod games these days, and I frequently need to understand the terminal api that’s being used to gather and use resources because the vscode gui fails to get things set up on its own a lot. I use the terminal directly less these days. But I still interact with it daily. Heck, I even use terminal args in steam game launching to improve performance occasionally.

        I mostly use the terminal for automation though. And ffmpeg.