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 âšâš9â© âšmonthsâ© agoâ© by âšsverit@feddit.deâ© to âš[deleted]â©
https://feddit.de/pictrs/image/bba8c940-f854-4578-bea2-5bebee1aff40.webp
Comments
programmer_belch@lemmy.dbzer0.com âš9â© âšmonthsâ© ago
tool@lemmy.world âš9â© âšmonthsâ© 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.pm_boobs_send_nudes@lemmy.world âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© ago
At least itâs transparent and often doesnât require root, unlike say a debian package.
Crazazy@feddit.nl âš9â© âšmonthsâ© 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
kautau@lemmy.world âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© ago
Oh shit fr? Thatâs wild
Semi-Hemi-Demigod@kbin.social âš9â© âšmonthsâ© 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 âš9â© âšmonthsâ© ago
Or just ask Linus Sebastian to install Steam for you
Mr_Blott@lemmy.world âš9â© âšmonthsâ© ago
Va te faire foutre
TonyTonyChopper@mander.xyz âš9â© âšmonthsâ© ago
mdr
mvirts@lemmy.world âš9â© âšmonthsâ© 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.
coco@lemmy.world âš9â© âšmonthsâ© ago
Pourquoi ??? Why ??
ilost7489@lemmy.ca âš9â© âšmonthsâ© ago
Because french
Diprount_Tomato@lemmy.world âš9â© âšmonthsâ© ago
Fr*nce
thepianistfroggollum@lemmynsfw.com âš9â© âšmonthsâ© ago
You donât need the wildcard after the slash. Itâs recursive with the r switch.
Vigge93@lemmy.world âš9â© âšmonthsâ© ago
I believe the wildcard eliminates the need for --no-preserve-root, since your not technically removing root, just all the stuff in it
kryostar@lemmy.world âš9â© âšmonthsâ© ago
@thelinuxEXP@mastodon.social :)
gadgetroid@lemdro.id âš9â© âšmonthsâ© ago
Always so great to see Nick on the fediverse!
luthis@lemmy.nz âš9â© âšmonthsâ© ago
This is why I alias rm=ârm -iâ
Enkers@sh.itjust.works âš9â© âšmonthsâ© ago
Youâve got to make sure to remove the root of the French language with --no-preserve-root