this post was submitted on 22 Sep 2025
153 points (98.7% liked)
Programmer Humor
38823 readers
269 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Without saving? Bold move.
Its vi. When I use it, I always fuck something up and get tangled up in knots. Best to just bail out and try again later.
Yes, open another terminal and start killing processes
That's the people who use vi to view a file. Watched a guy almost get fired when he shared his screen during an audit and had 'sudo vi /etc/shadow' right there in the command window. Auditor saw it and called him on it. He swore that he was only viewing the file to look for a user's id, but the auditor didn't care, because he could have modified it either on purpose or by accident.
Why not
cat
then? I don't care of his reasons either.Or less
Exactly, or grep would have worked. Dude just was used to doing this and picked the exact wrong moment to have it on his screen. He earned a finding with that one.
amateur !
screen sudo vi /etc/shadow
or
sudo screen nano /etc/shadow
if you're neurotypical
EDITOR=/bin/rm sudo visudo
EDITOR=/bin/rm $(which sudo) $(which visudo)
Are you going to save without knowing what changes were made? Bold move.