This is the first lesson you have to learn as a Linux enthusiast, NEVER run commands you don’t know from the internet
sudo rm -🇫🇷 /*
Submitted 1 year ago by sverit@feddit.de to [deleted]
https://feddit.de/pictrs/image/bba8c940-f854-4578-bea2-5bebee1aff40.webp
Comments
programmer_belch@lemmy.dbzer0.com 1 year ago
tool@lemmy.world 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
“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.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.
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.
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
__dev@lemmy.world 1 year ago
At least it’s transparent and often doesn’t require root, unlike say a debian package.
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
kautau@lemmy.world 1 year ago
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
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.
Semi-Hemi-Demigod@kbin.social 1 year ago
Cleaning up unused languages was a good way to free up about 100MB. Which was important if you only had a gigabyte hard drive
Reygle@lemmy.world 1 year ago
Or just ask Linus Sebastian to install Steam for you
mvirts@lemmy.world 1 year ago
Don’t do that until you unrandomize and deduplicate your disk
dd if=/dev/urandom of=/dev/sda
Don’t forget you need to run it as root to deduplicate all files.
thepianistfroggollum@lemmynsfw.com 1 year ago
You don’t need the wildcard after the slash. It’s recursive with the r switch.
Vigge93@lemmy.world 1 year ago
I believe the wildcard eliminates the need for --no-preserve-root, since your not technically removing root, just all the stuff in it
coco@lemmy.world 1 year ago
Pourquoi ??? Why ??
ilost7489@lemmy.ca 1 year ago
Because french
Diprount_Tomato@lemmy.world 1 year ago
Fr*nce
kryostar@lemmy.world 1 year ago
@thelinuxEXP@mastodon.social :)
gadgetroid@lemdro.id 1 year ago
Always so great to see Nick on the fediverse!
luthis@lemmy.nz 1 year ago
This is why I alias rm=‘rm -i’
Enkers@sh.itjust.works 1 year ago
You’ve got to make sure to remove the root of the French language with --no-preserve-root