this post was submitted on 10 Dec 2023
1361 points (98.2% liked)

linuxmemes

21260 readers
1992 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] Limeey@lemmy.world 157 points 11 months ago (39 children)

    A gui is helpful sometimes, but there’s a lot of cases where there’s no feasible way to make a good gui that does what the terminal can do.

    Right tools for the right job.

    For example, a gui to move a file from one folder to another is nice - drag and drop.

    A gui that finds all files in a directory with a max depth of 2 but excludes logs and runs grep and on matching files extracts the second field of every line in the file? Please just let me write a one liner in bash

    [–] andrew@lemmy.stuart.fun 126 points 11 months ago (2 children)

    A GUI makes simple things simple.

    A shell makes hard things possible.

    [–] lightnsfw@reddthat.com 55 points 11 months ago (3 children)

    Me fucking with hard drives/partitions : GUI please

    Me doing pretty much anything else - Terminal

    [–] 0x4E4F@sh.itjust.works 29 points 11 months ago

    I always install gparted in the live environment 😂... cuz... yeah, I can fuck things up and end up without my data 😂.

    [–] joel_feila@lemmy.world 10 points 11 months ago (3 children)

    Really you never organoze gigs of photos? That a gui task

    [–] lightnsfw@reddthat.com 6 points 11 months ago* (last edited 11 months ago) (1 children)

    Not much of a picture guy personally but I see your point.

    Edit: I have spent a decent amount of time organizing books and comic books and that was a pretty even split between GUI and Terminal. GUI to get them in a state that I could bulk rename/move into appropriate directory with the Terminal. I assume it would be similar with pictures.

    [–] captain_aggravated@sh.itjust.works 4 points 11 months ago

    I spent last winter ripping all my DVDs, and I did a lot of the organizing, changing file names etc. in the terminal. Because I could automate the process even a little.

    When doing TV shows, I could take the names of episodes from an online database, put those in a text file, use block edit mode and macros in Vim to format them the way I want, then use a bash command to iterate over the lines in a file and rename them all. Hell I'd probably still be at it if I had to rename that many files manually, even using copy/paste.

    [–] Astaroth@lemm.ee 3 points 11 months ago

    I have a GUI file manager that I never use but I got it because I know at some point I'm going to want to be able to see thumbnails of images.

    [–] thehatfox@lemmy.world 2 points 11 months ago (2 children)

    I see a lot of people saying they have to use a GUI tool for partition management, and I’ve never understood why.

    Text based tools like parted are fairly easy to use, at least compared to other terminal tools the same people are able to use for other tasks.

    What is it about partitioning that needs a GUI when other tasks don’t? Is it the visual representation of the partition layout? A general fear of borking a disk?

    [–] lightnsfw@reddthat.com 15 points 11 months ago

    Is it the visual representation of the partition layout? A general fear of borking a disk?

    Yes

    Being able to see it helps a lot. I can and have done it via parted. My media server doesn't have a desktop environment installed. I just really would rather have a GUI when it's available as an added safeguard.

    [–] aard@kyu.de 7 points 11 months ago

    Problem nowadays is that changing partition tables is so rare that parted changes their commands between uses, and I never remember if fdisk nowadays has all the GPT related issues that made me try parted in the first place ironed out. Plus I can't remeber the new GPT commands and partition IDs.

    I still mostly just read the help text every time because nothing else is installed - but from the speed I might be a bit faster with a well designed GUI nowadays if it is about modifying GPT disks. MBR disks I still can do with fdisk in my sleep.

    [–] avidamoeba@lemmy.ca 3 points 11 months ago

    A CLI makes simple things easy to implement.

    [–] 0x4E4F@sh.itjust.works 5 points 11 months ago
    [–] Crack0n7uesday@lemmy.world 5 points 11 months ago (2 children)

    I don't think I've ever used grep outside of a CLI.

    [–] ElderWendigo@sh.itjust.works 6 points 11 months ago (1 children)

    Surely you've used something roughly equivalent like searching a text, be it web page or other document, for a word or filtering a spreadsheet?

    [–] Tlaloc_Temporal@lemmy.ca 0 points 11 months ago (1 children)

    How would one use grep for a webpage in a browser? Does the page need to be accessed outside the browser?

    [–] rambaroo@lemmy.world 3 points 11 months ago

    You should be able to use curl to get the HTML and then pipe it to grep.

    [–] aard@kyu.de 3 points 11 months ago

    Emacs grep lets you run grep, and formats the results in a buffer from where you can then easily visit the files at the match location.

    load more comments (36 replies)