News for hackers. Stuff that matters.
Re:Ask HN: We've all been there, what was your big stuff up? by Boldewyn on Thursday February 02, 2017 @04:26AM (#13549224)
Looking for a specific line in the production server's /etc/password with this command:

sed -i -n '/foobar/p' /etc/passwd

trimmed the file to a single line's length. D'oh! Shouldn't have added that `-i`, should not have done that.

Luckily I could restore it from a (working) backup while still logged in. Phew!

There are no comments on this comment yet.