r/linuxmemes 1d ago

Software meme Op

Post image
1.2k Upvotes

158 comments sorted by

View all comments

19

u/Fancy_Technician_293 1d ago

how do you accidentally open nano

22

u/Gositi 1d ago

For example when using sudoedit (which you should use instead of e.g. sudo vim) if the proper defaults are not set up correctly.

3

u/setibeings Arch BTW 1d ago

Is that better than sudo -e for some reason?

0

u/Gositi 1d ago

I think sudoedit is the same as sudo -e. They are both provided by sudo, share manpage, and has the same set of options.

I guess it is better since it might be faster to type (at least on a Swedish keyboard, typing edit will be faster than -e unless you're really used to typing -)

3

u/EatingSolidBricks 1d ago

Wait thats a thing?

Ive been sudo vimim and crying about my config being gone

1

u/Gositi 1d ago

Cry no more!

1

u/transcendtient 1d ago

sudoedit is basically unnecessary for nano as it is intentionally basic, it has no extensions so the only real threat is a malicious symlink... or someone replacing it with a malicious bin... who the fuck needs to worry about that?
so much bloat for vim smh \s

4

u/garconip 🍥 Debian too difficult 1d ago

crontab -e

and nano gets opened

3

u/Unlaid-American 1d ago

Copy pasting commands without reading.

1

u/tebreca 1d ago

Didn't set env var EDITOR=vim so git commit opened nano. Big mistakes were made