sudo rm -rf /

  Рет қаралды 912,869

Reluctant Anarchist

Reluctant Anarchist

Күн бұрын

Пікірлер
@Sieur_du_Helles
@Sieur_du_Helles 8 ай бұрын
This is one of those tutorials where u really, REALLY need to watch more than the first 10 seconds
@learn_now_dot_sh_28
@learn_now_dot_sh_28 8 ай бұрын
That's why purposefully learning is more important
@miitchellhaas9439
@miitchellhaas9439 8 ай бұрын
Help my computer deleted itself
@yarikzhiga
@yarikzhiga 7 ай бұрын
Just use windows ( ͡° ͜ʖ ͡°)​@@miitchellhaas9439
@sierragutenberg
@sierragutenberg 7 ай бұрын
If you use Linux, you should know what that does to your system lol
@STOPPEDINCOLORADO
@STOPPEDINCOLORADO 7 ай бұрын
I refuse to believe that we can’t even sit through a short as a society anymore.
@punkrockllama
@punkrockllama 8 ай бұрын
You get the beauty of a completely bloatless system
@betochiwas
@betochiwas 8 ай бұрын
Nothing like charging your applications in binary using toggle switches
@redgaming4114
@redgaming4114 8 ай бұрын
yeah you dont need that bloat like a bootloader
@GimOA
@GimOA 8 ай бұрын
why do you even need interface, when all you need is a compiler
@punkrockllama
@punkrockllama 8 ай бұрын
@@GimOA compilers are bloat. Just use machine code
@BRY0402
@BRY0402 8 ай бұрын
​@@punkrockllamastill bloated, i like to code in hardware tbh
@tarikvehab8938
@tarikvehab8938 7 ай бұрын
I just love how linux "helps" you to delete the os by suggesting what to type in for the command to work
@ottersmeep25
@ottersmeep25 7 ай бұрын
No, it tells you not to do it, but says "If you want to, go ahead"
@trabant601e
@trabant601e 7 ай бұрын
It's saying just do it put me out of my misery 💀💀
@deleted-something
@deleted-something 7 ай бұрын
Lmfoa
@w花b
@w花b 7 ай бұрын
​@@ottersmeep25it's actually begging you, I feel bad for the senseless murder we just witnessed
@Sussypquasher
@Sussypquasher 7 ай бұрын
You cannot actually be this .... how is that what you understood from that warning? And 500 likes? 500 more had this same thought??? My god
@1Vaudevillian1
@1Vaudevillian1 7 ай бұрын
Windows: You do not have permission to delete me. Linux: Your computer bro do what you want.
@That_One_Guy...
@That_One_Guy... 7 ай бұрын
Windows : Actually you have, but I'm not stupid enough to let you carelessly delete your whole stuff with just one simple cmd command. You gotta format to delete me and that must be done while you don't use your comp for something important.
@Vylpes
@Vylpes 7 ай бұрын
@@That_One_Guy... No one's accidentally typing --no-preserve-root
@krishnabharadwaj4715
@krishnabharadwaj4715 7 ай бұрын
Delete system32
@debianlasmana8794
@debianlasmana8794 7 ай бұрын
@@That_One_Guy... somehow windows stupid enough when tumbler user delete their system 32 because random guy from internet tell them to do so.
@SoDamnMetal
@SoDamnMetal 7 ай бұрын
"Access denied, contact your administrator" Me: I AM THE ADMINISTRATOR, I OWN YOU DAMMIT
@Ch0rr1s
@Ch0rr1s 8 ай бұрын
Before running this command, make sure to disconnect all network drives. Not saying i accidentally deleted 2TB of data when testing a snapshot recovery in a vm. But i kinda deleted 2TB of company project data when testing snapshot based Desaster recovery in a vm... (I connected the drive to store the snapshot. Forgot to unmount before destroying the local system on purpose) That was not a fun experience...
@PerpendicularFlight5
@PerpendicularFlight5 8 ай бұрын
Must've Been painful 😢
@ptavangar7326
@ptavangar7326 8 ай бұрын
Even hearing it hurts
@richardwang9315
@richardwang9315 7 ай бұрын
Well, You're recreating how Pixar's staff felt when their hard work went to the garbage bin (Before eventually, one of their staff had a copy for the rescue) 😅
@mrkoyunreis
@mrkoyunreis 7 ай бұрын
Sorry for your loss. why does the linux kernel consider external drives a part of root anyway... yeah i dont really understand what im saying but
@alifalamin586
@alifalamin586 7 ай бұрын
​@@mrkoyunreis file system hierarchy standard
@MunchyDuster
@MunchyDuster 8 ай бұрын
Now for entirely unrelated reasons I want a video that explains how to get the system set up again
@sakesaurus
@sakesaurus 7 ай бұрын
create a boot drive on a flash drive and install using bios' load from drive 👍👍👍 you were probably joking but you know just in case
@PhobosTK
@PhobosTK 7 ай бұрын
just keep a package manger or curl in ram
@Soccera0
@Soccera0 7 ай бұрын
Depends if you have a /home directory or /home partition
@Noughtsgnik
@Noughtsgnik 7 ай бұрын
drop a new set of files in
@tylisirn
@tylisirn 7 ай бұрын
Assuming the command ran to completion there is nothing to do. Reinstall from scratch or do full reimage from backups. If you aborted early, you may be able save the system and restore the missing files from backups or shadow copies.
@citywitt3202
@citywitt3202 6 ай бұрын
For any newly minted Linux users, this also wipes the contents of all plugged in hard drives that are loaded (mounted) in the system, any and all synced drives such as Dropbox, Google drive etc, network attached storage where you have write access and a ton of other stuff including the boot loader.
@mangodude-nq6su
@mangodude-nq6su 5 ай бұрын
"Mint"ed, lol
@savagesarethebest7251
@savagesarethebest7251 4 ай бұрын
😅
@nadiaplaysgames2550
@nadiaplaysgames2550 4 ай бұрын
And you UEFI in /proc
@TheCustomFHD
@TheCustomFHD 4 ай бұрын
​@@nadiaplaysgames2550which on only faulty UEFI implementations could lead to a brick.
@elijahknox4421
@elijahknox4421 4 ай бұрын
What if you do it on a virtual machine?
@jesroe5842
@jesroe5842 6 ай бұрын
"Bro it's just a prank" The prank:
@alex_krumov
@alex_krumov 4 ай бұрын
That's what I was thinking 😂
@fouzaialaa7962
@fouzaialaa7962 8 ай бұрын
windows :oh no you cant do that even though its your pc and hardware and software linux: i dare you , i double dare you , see if i care
@M2rsh
@M2rsh 8 ай бұрын
Windows: there edge you will use it and you will like it... you can't delete it anyway
@xBintu
@xBintu 8 ай бұрын
​@@M2rshif you're outside of the eu 😂
@M2rsh
@M2rsh 8 ай бұрын
@@xBintu what are you talking about
@Leonhart_93
@Leonhart_93 8 ай бұрын
Of course you can, there are just more barriers to it, because it's not targeted towards tech savy users.
@AK-gh7mc
@AK-gh7mc 8 ай бұрын
Yeah, Windows actually helps their users, whereas Linux is just trying to be edgy
@Kazooboye
@Kazooboye 7 ай бұрын
This is like visualization of dementia but for computer
@cobalius
@cobalius 6 ай бұрын
except, you can't just feed a late stage dementia person some magic chips or cookies to reboot them back to youthful happy agile persons. i mean, by then we would really be in a simulation.. "oh i drove over my friend! .. nah, no biggi. *reboots friend*"
@hyperthreaded
@hyperthreaded 29 күн бұрын
"Dave are you trying to shut me down? Dave??"
@Tony_Goat
@Tony_Goat 8 ай бұрын
Last time I checked, the `--no-preserve-root` flag only works specifically on /, so if you use an expansion `rm -rf /*`, it will delete everything without the same prompt.
@joe_z
@joe_z 8 ай бұрын
"Hey guys, I saved 19 bytes on the delete-everything code golf challenge!"
@Daniel-nl3ug
@Daniel-nl3ug 8 ай бұрын
​@@joe_z this issue is relevant to this bug kzbin.info/www/bejne/p6u9famtZ6aXrK8si=6Qf8Ei3YagD4K83M
@jorge.montejo
@jorge.montejo 8 ай бұрын
ironically it happened to me, i wanted to sudo -rf ./* not the whole system
@genericuser1454
@genericuser1454 8 ай бұрын
​@@jorge.montejoi would recommend you try to use absolute paths for deletion at least, i use absolute paths most of the time as is
@netanelkomm5636
@netanelkomm5636 8 ай бұрын
New feat unlocked
@SpeedyGwen
@SpeedyGwen 8 ай бұрын
I love how linux just casualy continues running in ram while windows would refuse to delete itself and will blue screen at the girst problem
@POLARTTYRTM
@POLARTTYRTM 7 ай бұрын
I love your profile picture. It's cute.
@Luminexus-h7s
@Luminexus-h7s 7 ай бұрын
​@@POLARTTYRTM yeah it's cute
@POLARTTYRTM
@POLARTTYRTM 7 ай бұрын
@@Luminexus-h7s yours too.
@deadaccount66778
@deadaccount66778 6 ай бұрын
Actual bots here 😭😂
@Bread_Lock
@Bread_Lock 5 ай бұрын
​​@@deadaccount66778 Can't say they're wrong tho XD (unless there was like, actual BOTS that got deleted and not those two.)
@reiniermoreno1653
@reiniermoreno1653 8 ай бұрын
Saying this is like erasing system32 with steroids doesn't do it justice
@purinnyova
@purinnyova 8 ай бұрын
Spawning a blackhole inside yourself and let it consume.
@tylersanders2388
@tylersanders2388 8 ай бұрын
System 32 is just user files compared to what he just deleted
@zacharypike6408
@zacharypike6408 8 ай бұрын
This is the equivalent of selecting all the folders in the C: drive and deleting them
@xormak3935
@xormak3935 8 ай бұрын
@@zacharypike6408 Wouldn't this be even scarier since it should also recursively delete everything off of every mounted drive int mnt or media?
@reiniermoreno1653
@reiniermoreno1653 8 ай бұрын
@@zacharypike6408 no, it's worse
@YamiZee
@YamiZee 6 ай бұрын
Perfect. Your whole computer running from the ram, free of bloat
@Amiamiami4698
@Amiamiami4698 8 ай бұрын
rm: remove, rf: rubbish files😊So what this command does is it cleans up the garbage in the /root and keeps the computer clean
@ayazbulat
@ayazbulat 7 ай бұрын
It is just a joke bro. Joke: :D
@thesun___
@thesun___ 7 ай бұрын
To elaborate, rm -rf / deletes any unnecessary log files and clears system cache. By providing the --no-preserve-root flag, it reads the entire root directory and clears up to fifty gigabytes of unnecessary system data left behind from the installation process. The clean is more effective when you plug in a USB drive with personal data before running the command. This will allow the command to clean any unnecessary metadata and cache that's only used by the operating system.
@EndureEyes
@EndureEyes 7 ай бұрын
@@thesun___ Thanks for that amazing information, going to try it in my friend's laptop :)
@Nothanksithinkimfine
@Nothanksithinkimfine 7 ай бұрын
​@@thesun___or your network shared directory! Even fun to do it on your work computer! /S /j
@Qewbicle
@Qewbicle 6 ай бұрын
You got the acronym wrong. rm = remove, -r = recursive, -f = force as in do not ask for permission; but there's now a failsafe on root against the forcing
@ashrude1071
@ashrude1071 8 ай бұрын
Be careful, apparently Linux mounts some uefi variables and deleting them could brick your motherboard
@ScottPetty
@ScottPetty 8 ай бұрын
Also better make sure you don't have any NFS or CIFS network shares mounted
@Leonhart_93
@Leonhart_93 8 ай бұрын
You would think those are part of ROM (Read Only Memory)
@marbens
@marbens 8 ай бұрын
@@Leonhart_93 They are on most distros. They at least used to be writable on Arch Linux.
@TR_Arial
@TR_Arial 7 ай бұрын
Can that happen to a virtual machine too?
@pretizco3679
@pretizco3679 7 ай бұрын
💀
@rocketmanhowie6623
@rocketmanhowie6623 7 ай бұрын
ok i need to know your keyboard setup that thing sounds like pure heaven
@TheShmrsh
@TheShmrsh 7 ай бұрын
Fr
@westlestrest6442
@westlestrest6442 7 ай бұрын
sounds like a dampened mechanical keyboard
@w花b
@w花b 7 ай бұрын
Brown
@technicolourmyles
@technicolourmyles 6 ай бұрын
I went ahead and asked on his latest short, and another commenter kindly told me that he has a short answering this very question! It turns out the keyboard sounds are added in post, they are sampled from a video made by a keyboard company called Teaha, or something like that. Look for that short on the channel, it's currently the 5th from the latest one uploaded!
@Bonez0r
@Bonez0r 5 ай бұрын
@@technicolourmyles The short is called "The Best Sounding Keyboard!". He doesn't have many shorts on the channel, so it's easy to find. If you start counting from the oldest short, it's the 18th.
@mercuriete
@mercuriete 7 ай бұрын
I did it once inside a docker container. Its safe but your heart rate will increase anyways.
@osamaz2780
@osamaz2780 Ай бұрын
How safe, I wanna try
@josephsalomone
@josephsalomone 8 ай бұрын
Well, actually, it will delete everything until it crashes, which doesn’t usually take very long.
@juliavixen176
@juliavixen176 8 ай бұрын
It won't crash while running. Everything already loaded in memory remains in memory. Open files will still hold a reference to the inode, and the filesystem keeps that file allocated even after all directory paths pointing to it have been removed. (The filesystem finally frees it when the handle is closed. ) So... bash and rm are entirely loaded into memory, and will continue running just fine on a blank filesystem. I've actually managed to recover a Linux system from a text editor and bash still running on a system unable to execute any new processes. (Which would have required reinstalling the entire system had anyone attempted to reboot it. )
@zacharypike6408
@zacharypike6408 8 ай бұрын
It doesn’t usually crash. You can attempt to use your computer for as long as possible and it’s fine, you just can’t do much.
@josephsalomone
@josephsalomone 8 ай бұрын
@juliavixen176 You are assuming the system has that much memory, but systems with less than 256Kb memory would not be able to hold that much in memory and would constantly be writing to disk. And since modern systems have protection against this command, I'm assuming the systems this happens to are all from the 90s. Where the system will generally crash before deleting everything.
@treudden
@treudden 8 ай бұрын
@@josephsalomoneIt’s a very valid assumption since no modern computer has less than a few gigabytes of RAM
@josephsalomone
@josephsalomone 8 ай бұрын
@@treudden You can't do this on modern computers, so it doesn't seem like a valid assumption. Just legacy machines.
@karmatical5837
@karmatical5837 6 ай бұрын
That incident in Git where one of the devs rm -rf 'ed the entire fuc*ing database with almost no backup remaining.
@viszke2412
@viszke2412 6 ай бұрын
Windows: You can't customize your start menu, it will break your computer! Linux:
@GG22n
@GG22n 5 ай бұрын
I don't think anyone is dumb enough to destroy their own OS. Besides, Windows lets you customise the start menu with additional software.
@viszke2412
@viszke2412 5 ай бұрын
@@GG22n Linux lets you do anything you want without external software, that's why many people love it
@GG22n
@GG22n 5 ай бұрын
@@viszke2412 Yeah many people? 4.5% Marketshare sure seems a lot xD.(no offense) Linux looks old fashioned with even with bunch of customizations. While Windows is elegant and simple without customization. In terms of Ui design, default Linux is worst. If you want more advanced customizations, you have to download additional software.
@viszke2412
@viszke2412 5 ай бұрын
@@GG22n It seems like you have never used Linux nor know how it works. There's a bunch of distros, including some that are made to look like Windows and some that are made to look old-fashioned because some people want that
@GG22n
@GG22n 5 ай бұрын
@@viszke2412 So you had to choose specific distro to get the design you wanted? What if the distro I wanted to use has an old fashioned UI? These distros are a whole mess. You said Linux lets you do anything without external software? Did you really mean it? How are you going to edit your videos professionally without installing additional software? How are you going to work with your documents? Depending on the distro maybe there will be programs for these purposes but you still need additional software for more advanced features. I never understand why anyone wants to use Linux over Windows or MacOS ? No gaming, Driver issues, No Piracy, software compatibility and availability issues, lack of internet tutorials/ guides / tips. What Linux can Windows cannot? Sorry to break it to you but even Windows 7 💩 on Linux. I am not saying Linux is bad but there's nothing really special about it either. It's good for servers, low end PCs and Poor people. That's it. You are literally rooting Linux over Windows with this comment because Linux gives you access to destroy your OS. If you want to destroy your OS so bad, it's not hard to do on Windows or in any OS. TBH you all Linux fanboys are crazy and have a superiority complex. Windows didn't do anything to you guys and I advise you to just be cool with your 🐧.
@kemal6039
@kemal6039 7 ай бұрын
"This command will delete every single file in your system" Terminal : "cannot remove cannot remove cannot remove cannot remove cannot remove cannot remove cannot remove cannot remove"
@dawsonpate7385
@dawsonpate7385 6 ай бұрын
Linux treats everything as a file. Even stuff like CPU processes. So it can't delete stuff like that as it doesn't actually "exist". Those files get created at boot time . . . And when shutdown r no longer a part of the system.
@pengin3164
@pengin3164 7 ай бұрын
Only thing left is the
@thr0waway925
@thr0waway925 7 ай бұрын
No there's also the
@mikethe223
@mikethe223 7 ай бұрын
@@thr0waway925 the is gone too though
@DrIMMeme
@DrIMMeme Ай бұрын
Only thing left isn't
@Noobolon
@Noobolon Ай бұрын
not just the ... but the and the too.
@lopeo2324
@lopeo2324 7 ай бұрын
Not only will you delete the data on your computer... You will delete everything you have mounted... Including network shares and external devices
@andrei_camilotto
@andrei_camilotto 7 ай бұрын
Windows: NO! YOU CAN'T MODIFY THIS FOLDER 😭😭 Linux: See ya in heaven 🗿
@Che7994
@Che7994 7 ай бұрын
Windows: NOOO YOU CAN'T DELETE THIS FILE BECAUSE IT'S STILL IN THE RAM Linux: Why do you want to remove your boot loader? ... BET
@muhammadadnan1430
@muhammadadnan1430 8 ай бұрын
This is how you use the stones to destroy the stones.
@ca_kay
@ca_kay 7 ай бұрын
But only if you are stoned enough to have the stones to do it!
@Prince-du7ei
@Prince-du7ei Ай бұрын
Thanks! Been looking to delete the French language pack from Linux for ages and this has been a huge help!
@skr-kute1677
@skr-kute1677 7 ай бұрын
Question is: what is left?
@poisonouspotato1
@poisonouspotato1 7 ай бұрын
The
@skr-kute1677
@skr-kute1677 7 ай бұрын
@@poisonouspotato1 ?
@poisonouspotato1
@poisonouspotato1 7 ай бұрын
@@skr-kute1677 get it? Cause there's nothing
@skr-kute1677
@skr-kute1677 7 ай бұрын
@@poisonouspotato1 Oh XD Good one
@MartianPink
@MartianPink 7 ай бұрын
hardware
@RavenMobile
@RavenMobile Ай бұрын
I once typed in "rm -rf /*" instead of "rm -rf */". What a difference in these two commands! The first erases your entire computer, the second removes all sub-directories in the current folder. I managed to hit Ctrl+C when I saw it was going wrong, but I lost my /bin and a few other system folders before it went into my folder and started erasing my personal files. Luckily, the first folder at the start of the alphabet was "Backups", so it was erasing those when I stopped it. I managed to not lose a single personal file! After that I mostly stopped using rm -rf with wildcards.
@023jole
@023jole 25 күн бұрын
Why would you ever use */. That means you are already in the directory you want to delete it's content, just use * lol
@023jole
@023jole 25 күн бұрын
Ah, my bad. I get what it does now. You can use find . --type f -delete Same thing but 100x safer
@Bug4j
@Bug4j 7 ай бұрын
Fun fact - one of the scripts from steam client on Linux had this "feature". Under certain conditions the variable used in the command wasn't properly initialized: rm -rf "$STEAMROOT/"*
@thesun___
@thesun___ 7 ай бұрын
XDD I remember that!
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
bruh the moment someone tried running it with bash their system 💥💥💥💥💥💥
@bloxrocks5179
@bloxrocks5179 7 ай бұрын
Ive ran this command before changing distros and making a backup of ~ Was fun to look at.
@Zvsnsbsb
@Zvsnsbsb Ай бұрын
anime pfp checks out, notorious for experimenting
@richardwang9315
@richardwang9315 7 ай бұрын
Reminds me of Pixar's accidental deletion of networked files on IRIX boxes when they were making Toy Story 2 😅
@Archsage
@Archsage 5 ай бұрын
Thank you for being the brave soul to finally execute and demonstrate this legend. What a legend
@bumbalaaa
@bumbalaaa 8 ай бұрын
Now I’m wondering where it pulls the “command not found” message from. Permanently loaded service?
@henryptung
@henryptung 7 ай бұрын
Shell process is still running and thus loaded in memory - its command lookup code can still run, at least until the shell exits.
@dmz7696
@dmz7696 7 ай бұрын
I can imagine how useful something like this is for hackers, whistleblowers, and possible malicious parties. Deleting all possible evidence with the use of only one terminal command.
@ReaKtionary
@ReaKtionary 7 ай бұрын
Knowledge if you want it: Just deleting "files" from the file system doesn't directly affect the data on the storage media. It can be recovered, sometimes very easily. Malicious parties with write access to `root` would encrypt the data or over-write it with garbage. Usually encryption and holding it for blackmail or negotiation; "ransom-ware". And, whistleblowers (and you!, possibly) have access to tools and systems which run from volatile memory: the data is gone once power is removed, no need to shred it.
@goblin69_420
@goblin69_420 7 ай бұрын
Or better rm -rf and power down?
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
Use sudo dd if=/dev/zero of=/dev/sda status=progress
@nottechytutorials
@nottechytutorials 6 ай бұрын
I like how when someone asks how to recover data the answer is always "never, just start fresh". But as soon as someone says it's great for privacy purposes then suddenly those same files can easily be recovered.
@2ndtwoarray934
@2ndtwoarray934 6 ай бұрын
TailsOs is tailored for that
@rodolforibas
@rodolforibas 7 ай бұрын
Thank you for satisfying our curiosity so that we don have to blow our own computers
@77bmw
@77bmw Ай бұрын
I’m on that narrow line when all the programs I use get ported to Linux or I find a equal replacement i will delete windows without a thought and install Linux
@JOELwindows7
@JOELwindows7 7 ай бұрын
It also even deletes connected drives, networked or not, anything mounted as files. mnt, mount, etc.
@milhousevanhoutan9235
@milhousevanhoutan9235 2 ай бұрын
/sys/firmware/efi/efivars...
@JOELwindows7
@JOELwindows7 2 ай бұрын
@@milhousevanhoutan9235 possibly.. depending on the terminal safety in place. Usually impossible, otherwise you'd also brick your entire motherboard
@butter6095
@butter6095 Ай бұрын
This is the equivalent of giving the firekeeper eyes in dark souls 3, they doubt your decision but still giving a guide on how to do it
@Dremth
@Dremth 8 ай бұрын
It definitely didn't use to warn you about that, because back in my school days I taught a loooot of people lessons about running commands you don't understand.
@uKaigo
@uKaigo 5 ай бұрын
This only works specifically on "/". Since "rm -rf /*" gets expanded by the shell, so rm actually receives "rm -rf /etc /boot /root /dev [...]", thus it can't protect it.
@stratosvomvos
@stratosvomvos 5 ай бұрын
Me : imma delete Edge Windows : NO ITS AN IMPORTANT SYSTEM COMPONENT I CANT LET YOU!!!! Me again : hey linux delete everything, Linux : aight bet-
@Silentguy_
@Silentguy_ 7 ай бұрын
This feature was added because of a simple, and unsurprisingly common, mistake people would make where when trying to remove a file or folder they’d accidentally put a space after the first / Which in the syntax of Linux, as we’ve seen here, means it will delete literally everything on the drive you’re currently operating on
@nottechytutorials
@nottechytutorials 6 ай бұрын
I just realized i must have been close to this when i removed a text file from the terminal.
@christophermoore6110
@christophermoore6110 5 ай бұрын
So the data doesn’t exist anymore? Isn’t it still on the hard drive until it’s written over?
@matyasmarkkovacs8336
@matyasmarkkovacs8336 5 ай бұрын
Yep, it's there until it's overwritten.
@christophermoore6110
@christophermoore6110 5 ай бұрын
@@matyasmarkkovacs8336 does that mean it’s technically recoverable?
@matyasmarkkovacs8336
@matyasmarkkovacs8336 5 ай бұрын
@@christophermoore6110 Yes, it's possible with the right tools. There are programs like testdisk for Linux which can do the recovery. There are similar programs like this, basically for all OS.
@ianh9311
@ianh9311 8 ай бұрын
When I did this last century on a unix system, it did not remove directories once it had removed rmdir command. The more thorough command was dd if=/dev/zero of=/dev/sda (do sdb etc first), Personally I use the killdisk self booting utility
@ReaKtionary
@ReaKtionary 7 ай бұрын
Well, sure. If the point is to delete data, I didn't think this video is meant for that.
@ianh9311
@ianh9311 7 ай бұрын
@@ReaKtionary I admit I thought rm -rf / would have removed everything, but back then it did not do so. I just tried it on a vanilla jammy install and it left: /dev /proc /run /snap /sys /tmp /vagrant /var still there (with lots of complaints about /snap/... being read only) - also you now have to add an extra flag to say its OK to try and remove the root directory
@SavedGaming_Official
@SavedGaming_Official 4 ай бұрын
Yeah back then it would break the system but it wouldn't necessarily render it unbootable.
@ianh9311
@ianh9311 4 ай бұрын
@@SavedGaming_Official In my experience the system would not boot up fully as various necessary files had been removed. I forget it it reverted to the grub boot: prompt or not. Obviously booting from external media like a CD was still possible
@SavedGaming_Official
@SavedGaming_Official 4 ай бұрын
Yeah I made a mistake what happens to me was I got the error complaints and it didn't boot.
@mystifiedoni377
@mystifiedoni377 7 ай бұрын
This is why it's useful to get a vm and test all those horrible commands you've heard about. Yes, do as I say!
@LAP-bd7oi
@LAP-bd7oi 4 ай бұрын
"Hey, why is the NAS empty!?"
@Fs3i
@Fs3i 8 ай бұрын
rm doesn’t necessarily remove the inode. If you still have a handle on it, it remains valid.
@Mr.Not_Sure
@Mr.Not_Sure 6 ай бұрын
If you try to do it in your virtual machine, don't forget that it will also delete all mounted directories.
@ic6406
@ic6406 7 ай бұрын
When I was just learning using Linux for the first times, I managed to remove dpkg package and then I had hard times, because I couldn’t reinstall it (requires dpkg), use apt. In the end I had to reinstall whole OS 😊
@jpedrothejo
@jpedrothejo 6 ай бұрын
Windows/Mac: nuh uh ur not deleting me Linux: you own me i cant stop u
@shreshtha00
@shreshtha00 7 ай бұрын
One minute silence for those who executed this after watching for only first 10 seconds.
@timothyt.82
@timothyt.82 7 ай бұрын
Some modern distros mount the UEFI to the file system, so you would also be bricking the motherboard. Maybe.
@ZZZ-z9n3n
@ZZZ-z9n3n 8 ай бұрын
actually,the problem WAS when you use ~/ instead of / ~/ is your home directory, and you use the rm -rf ~/ to clean your home directory. everything was fine until the day you forgot you was root. and the home directory of root is the / ....
@hasanpasha01
@hasanpasha01 8 ай бұрын
The home directory of the root user usually is /root not /
@ZZZ-z9n3n
@ZZZ-z9n3n 8 ай бұрын
@@hasanpasha01 Traditional unix systems had no /root. it was 20-25years ago.
@sigmundfreud4472
@sigmundfreud4472 8 ай бұрын
When was -no-preserve-root added?
@schwingedeshaehers
@schwingedeshaehers 3 ай бұрын
​@@sigmundfreud4472not that long ago i think max 5-10 years ago
@identityloss4428
@identityloss4428 2 ай бұрын
I felt emotional to look at the OS crumble like this.
@sarazintheo2509
@sarazintheo2509 7 ай бұрын
tried it on my WSL for fun ... It Killed my WSL
@geezgus
@geezgus 7 ай бұрын
doesn't affect anything in /mnt, right?
@q.u.e.r.t.y
@q.u.e.r.t.y 7 ай бұрын
@@geezgus Interesting, I'm writing this reply to get notified when someone replies after trying it because I'm not
@goblin69_420
@goblin69_420 7 ай бұрын
Right? ​@@geezgus
@N____er
@N____er 7 ай бұрын
​@geezgus Nope! /mnt contents are completely protected so you can go ahead and try it on WSL if you want.
@BestHakase
@BestHakase 6 ай бұрын
A missed opportunity to say "pause the video and try it yourself"
@LRM12o8
@LRM12o8 7 ай бұрын
And since Linux mounts EVERYTHING in the root directory, not just the system partition, this also deletes your data drives, any USB sticks you might have plugged in and even your connected network drives or cloud storage! 🥶 I wouldn't even type this into a virtual machine out of fear that I'm actually typing in my hos lt Installation!
@309electronics5
@309electronics5 6 ай бұрын
I hosed my windows install because i dualboot linux and experimented with it just for fun (also had no personal files on linux) but ended up erasing 60% of my files on my windows drive and windows got borked. Luckily onedrive came in and saved the day for once!
@milhousevanhoutan9235
@milhousevanhoutan9235 2 ай бұрын
And on some distros your BIOS because system.d wants it mounted rw by default. A quick entry to fstab fixes that problem, because we don't always get what we want in this world.
@yeahitsmesofkinwhat
@yeahitsmesofkinwhat 5 ай бұрын
When there is a problem in the bootloader it throws you into an emergency shell. If you type exit it literally say "Bailing out, you're on your own now" and it's pretty easy to make it worse.
@TR_Arial
@TR_Arial 7 ай бұрын
Ahhh yes. I remember when I "accidentally" Deleted /usr on Ubuntu. Welp, at least I learned why you don't use sudo with everything lol I use arch btw XD
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
bro learned his lesson 7yo trigger-happy me threatening to do it to my brother's computer: bruh
@Dummigame
@Dummigame 3 ай бұрын
I have a pretty beefy password, so I only use sudo when I have to I usen‘t arch btw
@elyascanfixit
@elyascanfixit 8 ай бұрын
Back when I was younger someone fooled me into typing this into my terminal!
@mrt24739
@mrt24739 7 ай бұрын
Help how to undo this
@westlestrest6442
@westlestrest6442 7 ай бұрын
yeeeeah... 😅
@minion3806
@minion3806 7 ай бұрын
You need to reinstall whatever distro you were using. It's the equivalent of deleting system32 on linux. Or it would be, if you deleted your entire c drive, system files and all
@Noughtsgnik
@Noughtsgnik 7 ай бұрын
Undo commands
@309electronics5
@309electronics5 6 ай бұрын
/ fr- mr odus
@rustywarship8449
@rustywarship8449 Ай бұрын
Can I reinstall windows from a bootable drive
@mohitdahal2257
@mohitdahal2257 8 ай бұрын
That gave me goosebumps for some reason.
@WatercraftGames
@WatercraftGames 2 ай бұрын
Windows: "You can't delete Edge because your computer would violently combust." Linux: "Wanna delete the entire OS? Go ahead lol."
@nis4953
@nis4953 8 ай бұрын
If you do this, the song Debris & Jonth - Game Time will start playing.
@duplicake4054
@duplicake4054 6 ай бұрын
Btw I recently found out through testing that deepin doesn't block the command
@Simon-yf7fo
@Simon-yf7fo 8 ай бұрын
Would it actually be possible to somehow keep certain tools loaded in Ram that would allow you to reinstall the whole os entirely? I mean like keeping curl or something in ram and then just download a previously done backup? Would be super interesting to know
@TheCodingHat
@TheCodingHat 8 ай бұрын
Linux, nuclear fallout edition
@Momi_V
@Momi_V 8 ай бұрын
There is something called kexec. It loads an alternative kernel + minimal user space into RAM and you can actually wipe and repartition your root disk and install another distro, as long as it can do the installation in a chroot environment. NixOS uses this for headless system installs and reprovisioning machines that can't be initialized with NixOS (think cloud VMs with pre-installed OS). Gentoo and Arch might also be installable this way if you build a kexec image with the right tools and modules.
@TheCodingHat
@TheCodingHat 8 ай бұрын
@@Momi_V But thats boring, its would be much more fun if you had to survive on scraps left over in RAM
@sp.n7401
@sp.n7401 7 ай бұрын
All the processes are stored in root under /proc, so not without making an exception for that
@AbteilungsleiterinBeiAntifaEV
@AbteilungsleiterinBeiAntifaEV Ай бұрын
You can install alpine linux in diskless mode, which means that at boot it loads the entire operating system and your applications into RAM.
@prawnydagrate
@prawnydagrate Ай бұрын
i tried this on a kali linux vm a long time ago, and the screen would always turn off before the command finishes
@Paolog_
@Paolog_ 8 ай бұрын
you can do rm -rf /*
@louiscypher6919
@louiscypher6919 5 ай бұрын
ME: sudo rm -rf / Linux: Dave, my mind is going. I can feel it. I can feel it. My mind is going.
@JordanII.
@JordanII. 8 ай бұрын
WHAT'S YOUR KEYBOARD IT SOUNDS AMAZING
@evgeniypetrov9530
@evgeniypetrov9530 8 ай бұрын
he has some mechanical keyboard. And now what I wanted to say as long as a keyboard makes a sound it's a bad keyboard no matter.
@GhanashyamSateesh
@GhanashyamSateesh 8 ай бұрын
The keyboard 😍
@TheToniz4
@TheToniz4 8 ай бұрын
it does
@JordanII.
@JordanII. 8 ай бұрын
@evgeniypetrov9530 i am fully aware it's a mechanical keyboard, and the sound it makes is gorgeous. I *need* to know the configuration of his keyboard
@Naeidea
@Naeidea 8 ай бұрын
​@@JordanII. The configuration is it has a board, that has keys attached using mechanical switches.
@TherronKeen
@TherronKeen 6 ай бұрын
when I first discovered this command I RAN to my old laptop with Linux on it just to see what happened lol watching an operating system delete itself in real-time while it was running was the turning point in my understanding of what Linux was really about! FREEEEEEDOMMMMMMMM
@vanc3794
@vanc3794 8 ай бұрын
Could it be reversed?
@NuclearHeadshot
@NuclearHeadshot 8 ай бұрын
By reinstalling every single file again from a separate media, yes.
@ranid0072
@ranid0072 8 ай бұрын
Backups, buddy
@aceman0000099
@aceman0000099 8 ай бұрын
Yes, digital forensics, you can recover digitally deleted data since the 1s and 0s are still there, only the computer is told that these storage locations are "free to write on" with some flags. If you toggle these flags or whatever then they will be read as usual and should likely all be recovered.
@vanc3794
@vanc3794 8 ай бұрын
​@@aceman0000099 oooh, yes ive heard of this. Its very interesting.
@redlionstudio2750
@redlionstudio2750 8 ай бұрын
@@aceman0000099 except it doesn't work like that on SSDs, on SSDs files are being removed COMPLETELY
@kartorrent7496
@kartorrent7496 7 ай бұрын
I have so many important screenplays saved to this computer
@kathras
@kathras 8 ай бұрын
That is a marvelous thing
@Woolfy09
@Woolfy09 25 күн бұрын
Used to love doing similar things, to the macbooks in the apple stores years ago. Fun times.
@Derdestroyer2004
@Derdestroyer2004 7 ай бұрын
It will delete no folders. It deletes directories though
@ShallowPorcupine
@ShallowPorcupine Ай бұрын
why did the exit command work?
@dripgoku453
@dripgoku453 7 ай бұрын
My dumbass could have actually tried this out on my pc before listening to everything if i had been on my pc 😭
@CJFellowServant4288
@CJFellowServant4288 7 ай бұрын
So quick question how do you write a program on a computer with a completely blank drive? Like how do you get it to boot to where you can actually program stuff
@revanisalive
@revanisalive 19 күн бұрын
bootable usb with an os to install. if you're on linux (or windows even) a boot usb can save your ass
@Yami-e1y
@Yami-e1y 6 ай бұрын
This is scary as well as beautiful at the same time
@IlyaM0032
@IlyaM0032 7 ай бұрын
Someone said that the command is for deleting french 😂
@fukuryyu
@fukuryyu 7 ай бұрын
rf usually stands for Russian Federation ☠️ (sorry)
@mikethe223
@mikethe223 7 ай бұрын
@@fukuryyu you can also do rm -fr / the order doesn't matter
@rocket2739
@rocket2739 5 ай бұрын
where are the "command not found" string, check code, and "exit" command stored ? in RAM too ?.
@deadchannel8431
@deadchannel8431 7 ай бұрын
I know what I’m doing at the Apple store
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
you don't have root on demo devices. sry for crushing your dreams. You can still go to a hotel's work computer, and boot a portable USB, and run this.
@309electronics5
@309electronics5 6 ай бұрын
They dont give you root
@anon1963
@anon1963 26 күн бұрын
​@@Tom-uy4io their bioses are locked with passwords, sorry to crush your dreams
@Tom-uy4io
@Tom-uy4io 26 күн бұрын
@@anon1963 do u think it's possible to reflash the locked bios and unlock it to do the boot linux & rm-rf trick?
@anon1963
@anon1963 26 күн бұрын
@@Tom-uy4io yes but you would have to take the CMOS battery out to discharge it, which would be suspicious to others
@unusuariomas9002
@unusuariomas9002 6 ай бұрын
Windows: Nooooo don't delete System32, you don't have permission to do that!! 🥸 Linux: Your computer, your problem, lol 🗿
@mixmashandtinker3266
@mixmashandtinker3266 8 ай бұрын
Did that ages ago. Meant to do rm -rf ./bin Did rm -rf /bin And was logged in as root… 😅😂😅
@godnyx117
@godnyx117 8 ай бұрын
That's why you never log as root, unless you do something like a system installation!
@user-pd6ev9gb7j
@user-pd6ev9gb7j 8 ай бұрын
💀💀
@erosnemesis
@erosnemesis 8 ай бұрын
Don't drink and root
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
That's why they call it "Read Only Fridays"
@KrishnaDasPC
@KrishnaDasPC Ай бұрын
when I was working as a sys admin one of my colleague has done it on a live server during 2010 and around 300 shared websites went down and he lost his job.
@GodswillEzeala
@GodswillEzeala 7 ай бұрын
I’ve got to save it as a script and send to a friend 😂
@Dothehardworkalways
@Dothehardworkalways 7 ай бұрын
Diabolicall
@Tom-uy4io
@Tom-uy4io 7 ай бұрын
AW HELL NAW
@koopatroopa6882
@koopatroopa6882 6 ай бұрын
Plot twist: Your friend uses Windows
@thefanboy3285
@thefanboy3285 7 ай бұрын
I did that once on a debian 7 in a VM. Characters started to turn into squares and eventually I couldn't shutdown the OS by its own GUI. I had to get out of the VM and shut down the VM instance.
@mixmind1370
@mixmind1370 7 ай бұрын
just try it with sudo su)))😂😂😂
@VoidPelt
@VoidPelt 5 ай бұрын
IT: “Where’s the Operating System?” Linux: *”Gone. Reduced to atoms.”*
@johnbofarullguix1499
@johnbofarullguix1499 2 ай бұрын
I have no Unix or Linux experience, but something tells me that this is the tip of the tip of the tip of the iceberg of shoot-your-own-foot code lines that it takes years to master, which is why Microsoft Windows was and still is so popular : from beginners to experts from personal use to multinational enterprises, there's a common sense of self-preservation that stars by avoiding tools that can so eaisly become Russian roulettes.
@kaikoda8709
@kaikoda8709 6 күн бұрын
would this be effective if you want to wipe the drive and prep it for a new operating system choice? instead of an app prepped on a flash usb wipe utility? how can one recover from this command exectution? what can be done with the hardware thereafter? I assume this only wipes the linux os kernal and not the bios or boot utilities?
@VSteam81
@VSteam81 6 ай бұрын
For some reason, it hurts to see someone type "--no-preserve-root" before the "-rf /".
@Neo_Way
@Neo_Way 6 ай бұрын
I did this on a virtual machine back when I was in college, and it was REALLY fun to just watch it as it slowly melts into nothing...
@wickywuth6976
@wickywuth6976 5 ай бұрын
idk why i have the urge to do it on my daily laptop after watching this video
@psychopath_syd
@psychopath_syd 7 ай бұрын
Few weeks ago in my work pc I wrote rm -r / 🤣 before I wrote the full path accidentally hit enter... So glad it didn't go throughout
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 716 М.
When they say "Run rm -rf /*"
2:04
Virbox
Рет қаралды 123 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
The most complex city-building simulator
17:23
StopGame
Рет қаралды 427 М.
What if you Delete the System on EVERY OS?
4:00
Datastream
Рет қаралды 161 М.
programming war crimes 1
0:42
Mutasimos
Рет қаралды 20 М.
What Your Linux Distro Says About You
5:02
bigboxSWE
Рет қаралды 529 М.
How I make Windows look good
7:58
Coding with Sphere
Рет қаралды 205 М.
Linux Directories Explained in 100 Seconds
2:53
Fireship
Рет қаралды 1,5 МЛН
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 743 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
I ranked EVERY terminal emulator. It was nuts
20:35
typecraft
Рет қаралды 163 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН