In addition to commands that can wipe your drive (and possibly your mainboard), screw up things like fstab and boot to tty, there’s also the issue of people using sudo + text editor to edit files.

The proper way is using sudoedit.

Sudoedit uses a temporary file to make changes, so it’s not edited by the root user reducing the risk of accidental damage to critical files. If something goes wrong during editing, the original file remains intact. It also maintains the permissions of the edited file.

New Linux users aren’t likely to know better, so the advice of ‘just use CLI’ is pretty ignorant.

  • okwhateverdude@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 days ago

    this is hilarious. I had to try it and for once the internet didn’t lie to me.

    shell globbing is so dangerous lol. If you’re paranoid, adding -- to rm makes sure the contents of the glob aren’t interpreted as flags

  • SatyrSack@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago
    1. Why did that command not delete -rf?
    2. What about deleting Stuff was an accident? It looks like that was the intention.
    • madthumbs@lemmy.worldOPM
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      8 days ago

      I didn’t look closely at the CLI to see if it totally applied or not. Just threw a somehwat related image I had on hand to catch attention to the article.

      Thanks for pointing it out.