this post was submitted on 11 Dec 2024
-4 points (42.9% liked)

Linuxsucks

209 readers
73 users here now

Rules:

  1. FOSS advocates and Linux evangelists aren't welcome. -We ask that you block us.
  2. Moderation is heavy handed. Try to stay on topic.
  3. No Complaining Mute the sub if users, content, or rules bother you

founded 2 months ago
MODERATORS
-4
Just use CLI! (lemmy.world)
submitted 1 week ago* (last edited 1 week ago) by madthumbs to c/linuxsucks
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] okwhateverdude 3 points 1 week 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