Hacker News new | ask | show | jobs
by Xelynega 756 days ago
Is this a real opinion people have, or am I misunderstanding...

It sounds like you're recommending people to not understand the shell one-liners they're pasting into their CLI and instead just verify that the outcome was observed after the fact?

That's pretty much the opposite of what I've understood to be "good terminal practice" for my entire life, which can be summed up as "don't execute anything in the terminal that you don't understand".

Is "just paste it and hope you don't lost data/just installed a virus" the new modus-oprandi?

1 comments

> It sounds like you're recommending people to not understand the shell one-liners they're pasting into their CLI and instead just verify that the outcome was observed after the fact?

Yes

> Is "just paste it and hope you don't lost data/just installed a virus" the new modus-oprandi?

No

Somewhere in between those two extremes is knowing enough to know that the command you’re pasting in isn’t going to install a virus, even though you don’t fully understand what the -g flag is doing

You either understand what the outcome of the command will be before you execute or you don't.

I fail to see any middle ground between those two "extremes", it's pretty black and white.