Honestly you shouldnât run commands on any OS if you donât know what they are doing. An elevated powershell command or something on a Mac with SIP disabled (which some âtutorialsâ will call for) can also do horrible things to a machine
Comment on sudo rm -đ«đ· /*
programmer_belch@lemmy.dbzer0.com âš1â© âšyearâ© ago
This is the first lesson you have to learn as a Linux enthusiast, NEVER run commands you donât know from the internet
kautau@lemmy.world âš1â© âšyearâ© ago
programmer_belch@lemmy.dbzer0.com âš1â© âšyearâ© ago
Also any automatic modification of config files (with
echo
andtee
) can screw up your configuration without you knowing what it changed. Itâs better to just edit config files while reading the comments inside or theman
page.
glassware@lemmy.world âš1â© âšyearâ© ago
And never run commands copied from a web page, even if you do know them.
JavaScriptâs copy/paste API means a website owner or an attacker can change the contents of your clipboard after you press copy, and youâll end up pasting malicious commands into your shell. I think Firefox blocks this now, donât know about Chrome.
sharkfucker420@sh.itjust.works âš1â© âšyearâ© ago
Oh shit fr? Thatâs wild
tool@lemmy.world âš1â© âšyearâ© ago
âNah, just
curl
this random web address and pipe it over to a sudo bash shell, everything will be fine!âI hate how this is becoming the official install method for more and more shit. Itâs like dude, really? You may as well stick your dick in a garbage disposal, both of those actions are equally safe.
Youâre dreaming if you think Iâm not going to
wget
it and read it to see what it does first.pm_boobs_send_nudes@lemmy.world âš1â© âšyearâ© ago
As a lawyer I feel the same about people not reading contracts and signing stuff or just clicking the accept button. But hey, thatâs just how it is unfortunately.
schaeferpp@discuss.tchncs.de âš1â© âšyearâ© ago
To be fair: This is what anyone expects when you install software for Windows. Just download a more or less âgood lookingâ binary blob, execute it with administrative privileges and hope that it will do what you want it to do.
__dev@lemmy.world âš1â© âšyearâ© ago
At least itâs transparent and often doesnât require root, unlike say a debian package.
Crazazy@feddit.nl âš1â© âšyearâ© ago
Even worse is when the bash script you downloaded is only there to do some uname checks and then download and execute more code from the internet