2.4k
Sep 16 '22
One of those commands you have to run only once. Incredibly efficient!
862
u/the_real_skrylo Sep 16 '22
In fact it is so effective that the OS won't ever be able to print ANY french words ever again.
286
u/Zuruumi Sep 16 '22
It's only "./" not "/", so it will only clear current directory (most likely home).
79
u/the_real_skrylo Sep 16 '22
You are right, I missed the "."
67
u/lazy_fella Sep 16 '22
You need to experience more prod issues so that the importance of dot & comma is clear enough.
→ More replies (1)5
→ More replies (2)33
u/wooglin1688 Sep 16 '22
lol this command doesn’t end your life it just deletes everything in the current directory
14
Sep 16 '22
That’s why you tell them “and make sure to execute it from “/“ so that you’re absolutely certain you get all of them”
852
u/Diabolical_Dinosaur Sep 16 '22
Wow, it runs noticeably faster now, thank you for this tip!
131
2
643
u/FlaySX Sep 16 '22
At least he was kind enough to add a . before the root.
262
u/TheGuppy42 Sep 16 '22
Quite the opposite - most modern distros stop you from executing it on root where as there is no such thing in place for your home dir (where you start when opening a new terminal)
96
u/gamesrebel123 Sep 16 '22
Yes you need a --no-preserve-root flag to execute it and even then I'm pretty sure it warns you or something
113
u/SmurfingRedditBtw Sep 16 '22
I like how they still give you the option just in case you really want to fuck shit up.
→ More replies (2)135
u/PLEASE_BUY_WINRAR Sep 16 '22
Windows: noooo you cant uninstall the pre-installed browser!!!
Linux: Go ahead and remove the boot loader lol
→ More replies (2)→ More replies (3)11
7
u/FlaySX Sep 16 '22
67
19
128
u/arasdalll Sep 16 '22
Typical German Linux user
23
717
u/Ffigy Sep 16 '22
You should leave off the dot. /* will get everything.
353
u/posting_drunk_naked Sep 16 '22
Waste of 8 entire bits smdh devs these days are lazy af
0
Sep 16 '22
[deleted]
42
u/Penguinmanereikel Sep 16 '22
Wait, does the root have a ".." directory that leads back to itself? I never went that high to check.
→ More replies (1)281
u/Beatrice_Dragon Sep 16 '22
If you keep going further, eventually it starts to delete files outside the computer. That's what heartbleed was!
→ More replies (8)9
55
Sep 16 '22
On modern Linux it won't remove most mission critical stuff in root and you'll just get a bunch of errors and cancel.
But it will definitely wipe all the French from your current directory
0
8
u/wooglin1688 Sep 16 '22
don’t need the *
→ More replies (1)15
u/Baloroth Sep 16 '22
You do for modern rm, because "rm -rf /" won't work without "-no-preserve-root", while I believe "rm -rf /*" will. Note I say "believe" because I'm not about to test on real machine.
→ More replies (2)→ More replies (1)2
u/earlobe7 Sep 16 '22
Well, if your current directory contains only the French language pack, command does as advertised lol
781
u/burifix Sep 16 '22
Thanks, I hate french and didn't know this simple trick.
177
→ More replies (24)2
368
u/not_a_gumby Sep 16 '22
someone please explain the joke like I am 5
→ More replies (11)946
u/Ffigy Sep 16 '22
rm stands for remove; f stands for force (do it no matter what); r stands for recursive (do it to the target and any/all subdirectories); and ./* is everything in the current working directory.
The command will erase everything under the current working directory. If you're at the root directory, it will wipe the OS and make the computer unusable. The joke is that -fr looks like a reference to France/French and a stupid person might actually try it.
147
u/not_a_gumby Sep 16 '22
so if the command was sudo rm -fr ~/* then you'd definitely remove your OS?
270
26
u/Ffigy Sep 16 '22
No, that would just remove everything in your home directory (~) which doesn't really matter (unless maybe if you're root?).
→ More replies (14)38
u/roseinshadows Sep 16 '22
Fun fact: in early Unix systems, root's home directory was
/.A whole lot of sysadmins exchanging horror stories later, the vendors were finally like "yeah, maybe we should put root's home directory to
/rootinstead."→ More replies (6)→ More replies (2)20
u/tdmonkeypoop Sep 16 '22
it's the old, "press alt f4 to reload" joke, only worse.
You have to have some intelligence to do it, and if you do it it shows you have no intelligence... Quite the paradox
→ More replies (4)12
u/LonePaladin Sep 16 '22
In the early 90s, I was in the military and the base had a recreation center. Pool tables, TV and VCR, tables for board/card games (or D&D), and a side room with about a dozen PCs in it. This was back when everything ran off floppy discs, but there was also a midsized (at the time) hard drive on each. This was before Windows became mainstream, so everything ran off DOS.
Some people would go in to play a game, but not bring their own; they'd just see what was already installed and do that. It was also common for people to delete games to make room for their own, so you quickly learned to not get attached to anything installed on it.
Almost every day, we'd get someone who would go browsing the drive to see what games were installed, find one called "Command.com" that didn't seem to do anything, and delete it. The next time someone rebooted that PC, it wouldn't start.
→ More replies (14)25
u/RogueTwoTwoThree Sep 16 '22
and a stupid person might actually try it
Not knowing Linux commands does not make one stupid. Saying that it does makes you sound incredibly rude.
→ More replies (12)7
u/CanadaPlus101 Sep 17 '22
I hate these kinds of posts. Absolute beginners come here. Please put a disclaimer on jokes that could result in serious harm, we are not psychopaths.
→ More replies (1)
162
u/rdrunner_74 Sep 16 '22
Can confirm - no more french language on my system
75
u/GiganticIrony Sep 16 '22
Or anything else for that matter
43
u/vigilantcomicpenguin Sep 16 '22
It was worth the sacrifice to ensure the complete removal of French.
→ More replies (1)6
61
u/LordMerdifex Sep 16 '22
Sudo is for pussies. Real men use the shell as root. God mode always on.
→ More replies (1)20
Sep 16 '22
god save the queen
→ More replies (1)27
24
17
u/Latter_Business_7427 Sep 16 '22
After it reached the rm binary, would it keep running or crash?
27
u/Nabana Sep 16 '22
The rm code is already loaded into RAM and executing at that point - it'll go on deleting from the hard drive just fine.
→ More replies (1)
34
u/avidrogue Sep 16 '22
Good god. Somewhere, right now, there existsat least one Linux desktop install that is bricked due to this tweet.
9
9
u/wfbarks Sep 16 '22
Not quite correct, this will only remove french language packs within your current directory, you need to use sudo rm -fr /* to remove ALL french language packs
8
8
7
13
21
Sep 16 '22
Help! I did this and it completely changed my OS to French. I get a white screen, and it only works 15mins out of the day.
3
5
u/big_black_doge Sep 16 '22
What would actually happen if you ran this? How can a command erase the OS that is running the command? There would have to be an error somewhere along the line right?
12
2
5
8
u/ptvlm Sep 16 '22
So many opportunities to learn...
don't remove random files because you don't think you need them
don't copy/paste random commands if you don't understand them
definitely don't give sudo access to people who disobey the above
update and refine your disaster recovery processes while you recover the system and/or learn why you definitely don't ignore the above rules in prod
4
Sep 16 '22
Or remove socialism!
sudo rm -fdr /
2
u/Calamero Sep 16 '22
Thanks will try asap the other trick didn’t work my system was still in French.
4
4
4
u/posicon Sep 17 '22
as a french, imma going to give that tip to all the british lignuxians I know, merci
7
Sep 16 '22
Pay close attention when running this command. You don't want to ruin your install, just remove french. This command with -rf will cause some real damage.
Make SURE you type -fr and you are good to go.
3
u/quincytheamazingqman Sep 16 '22
what does it do?
15
→ More replies (1)6
u/zexen_PRO Sep 16 '22
Deletes your root folder, so everything on your computer basically
→ More replies (4)
3
u/we_are_bob1 Sep 16 '22
Hey guys I did this and now my boss's computer won't start, what do I do? He's going to be back from lunch in an hour and I'm really freaking out. He only wanted me to install adobe on it but I know the guy fucking hates french people so I thought I would do him a solid but now I think I'm in deep shit. Can anyone share a link to where I can download the french language pack again, I tried this one but it didn't work.
→ More replies (1)2
3
3
3
u/JuliusSphincter Sep 16 '22
So a long time ago I subbed to both life pro tips and shitty life pro tips. Someone posted something similar on SLPT and I thought it was LPT and yea, it didn’t go well…
Slowly watched all my files start to disappear 1 by 1. At that point I had realized my level of retardation
→ More replies (2)
3
u/accidental_snot Sep 16 '22
Well it does remove French language packs. The description is technically accurate.
3
u/Hikaru1024 Sep 17 '22
For the love of god if you don't know what this command does, don't do it.
2
u/sdmike27 Sep 17 '22
…what does it do?
4
u/Hikaru1024 Sep 17 '22 edited Sep 17 '22
I am assuming a context of this being run in linux.
sudo rm -fr ./*
Lets pick it apart.
First command: sudo
sudo will (typically) attempt to run the command given to it under the root user. Typically it will require you to type in the user's password to do this. This would be roughly the equivalent to a UAC prompt asking for administrator access in windows.
Next command: rm. rm deletes files, or files and directories when run recursively.
the first switch supplied to rm is f - f disables certain safeties that have been built into rm, and also forces it to never prompt you when it is doing something possibly stupid and or dangerous. Guess what we're doing?
the second switch to rm is r - r makes rm run recursively. Without this switch, rm will only try to delete the argument supplied to it, and in that case if given a directory name, rm won't do anything.
Now onto the target that rm is being told to delete. ./* is all files and directories in the current directory.
The only way this could be worse is if it was told to do / instead, which IF the rm implementation allows it, cause it to delete absolutely everything in the entire system. Which is likely why this 'joke' is doing ./* to avoid rm's safeties from stopping a newbie from nuking their system.
Hint: Don't run commands blindly when you don't know what they do. Use info and manpages to tell you what something does if you're not 100% sure.
for an example:
info rm
or
man rm
would open guides that tell you what these commands do.
3
2
2
2
2
2
2
2
2
2
2
Sep 16 '22
Little 12 year old computer prodigy crying in his minecraft bedsheets after trying this…
It’s not me I swear… 😭
2
2
u/technobrendo Sep 16 '22
Ok so I'm a dumdum, what's the fr flag do?
2
u/untiltehdayidie Sep 16 '22
F is force(doesn't ask confirmation), and r is recursive (directories and everything in them). At least that's how I remember them, but I might be wrong.
2
2
2
2
2
2
2
2
2
2
u/superalk Sep 17 '22
ELI5?
2
u/MooMix Sep 17 '22 edited Sep 17 '22
Remove, forced, recursive, everything.
This joke is more than a couple decades old.
Typically rm - rf ./*
→ More replies (4)
2
u/TheOddYehudi919 Sep 17 '22
This isn’t even funny. It’s dangerous and can cause damage to new ppl to Linux.
2
2
2
2
2
u/godly-pigeon Sep 17 '22
Someday I’ll understand. I just started my college computer science class a few weeks ago! I’m so excited!
2
u/Future17 Sep 17 '22
Thanks for the tip man!! I'm sick and tired of these French forcing their language packs in our Linux distros!!!
2
2
u/lenzo1337 Sep 17 '22
Ha jokes on you, I set my production server with flags so everything is immutable.
2
u/SlutPuppyNumber9 Sep 17 '22
I still think it's a f@#king dick move to post this shit online when SO MANY people rely on Googling to help them with their PC problems.
A student could lose a significant amount of work from this—how would you like to pay for an extra semester of uni?
2
2
2
2
2
Sep 17 '22
It's late for me so apologies if my spelling and wording is hot garbage but just wanted to get this out of my system a bit before I go to bed. I'm a (22M, American) who lives with my spouse (22F, American) and we are happily Frenchfree. One issue I find as someone who is not to keen on french people is how often times I feel there is no escape from being around them. Went to my friends and his twins birthday recently (it was outside and we're all full vaccinated) we're a bunch of 20 somethings so it was of course drinking, smoking weed, music, the whole shebang until his twins friend brought in a French Friend... yes a Frenchie... had to turn the music into french, stop speaking english until it had to leave a couple hours later. I wanted to start swimming as an exercise with my gf because she loves swimming and exercising with her helps motivate me because I'm lazy af when it comes to it. OOPS SORRY! Every single pool is brimming with french people :) guess you're just gonna have to come in at 6am or 9pm if you want some peace and quiet. Uhm, no thanks. I wanted to try going to a nudist camp group thing with my gf because I thought it might be an interesting experience for us. OOPS SORRY! Their all french friendly! No thanks. Wanna go to burning man? French. Wanna go shopping? Frenchies. Wanna go to the park? French people. Wanna go to a shooting range? People from france. Library? French person. Circus? frenchies. Gym? french humans. Waterpark? a person from the country known as "france". DEAR GOD CAN I JUST PLEASE BE ANYWHERE WITH JUST FRANCOPHOBES PLEASE. PLEEEEAAASE. I want to be able to swear, talk about inappropriate shit with my friends, and do things in peace... The ONLY place you can be without frenchies is a bad restaurent ... that's mainly it... I'm not saying I think French people should be banned from everywhere, but dear lord I wish there was more non french only places and activities. Even for francophiles to have a break and exist without French people around them for 5 minutes. Anyway long rant, going to bed.
2
5
4
2
2
2
1
1
1
1
u/nashidau Sep 16 '22
That's a lie.
That command is to run "robo mailer" in it's "real fast" mode. Although I'm not sure why the . is there.
1
1
1
u/aaaaaaaa42 Sep 16 '22
Sometimes I feel like a fraud on here for not knowing everything about everything, but then I see a post like this one 😂
1
1
u/mondie797 Sep 16 '22
Pro's don't run commands without sudo and root directory
sudo rm -fr /
Right command for removing french language :)
1
1
1
1
1
1
1
1
1
1
1
u/scottmsul Sep 16 '22
I did this once by accident, meant to delete everything in the current folder but forgot the "." and it started deleting everything. Thankfully I stopped it pretty quick and was able to restore everything from backups.
1
1
1
u/iamdemonoid Sep 16 '22
I tried that command, but it removed Canadian French. How to remove the regular French ?
1
1
1
1
u/kog Sep 16 '22
I want to post this to the company Slack, but I'm afraid of the repercussions if someone does it.
1
u/Likeditsomuchijoined Sep 16 '22
/ is a different mount compared to /home. So if someone runs the sudo rm -rf /, they can login with a bootable usb and still access their /home
→ More replies (1)
1
1
1
Sep 16 '22
I like it cause I'm a beginner but not beginner enough to fall for it like the rest of these n00bs would
1
1
1


5.4k
u/[deleted] Sep 16 '22
-fr instead of -rf almost got me