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.
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.
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.
amateur !
screen sudo vi /etc/shadow
or
sudo screen nano /etc/shadow
if you’re neurotypical
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.
Are you going to save without knowing what changes were made? Bold move.