This is one of those tutorials where u really, REALLY need to watch more than the first 10 seconds
@learn_now_dot_sh_288 ай бұрын
That's why purposefully learning is more important
@miitchellhaas94398 ай бұрын
Help my computer deleted itself
@yarikzhiga8 ай бұрын
Just use windows ( ͡° ͜ʖ ͡°)@@miitchellhaas9439
@sierragutenberg8 ай бұрын
If you use Linux, you should know what that does to your system lol
@STOPPEDINCOLORADO7 ай бұрын
I refuse to believe that we can’t even sit through a short as a society anymore.
@punkrockllama8 ай бұрын
You get the beauty of a completely bloatless system
@betochiwas8 ай бұрын
Nothing like charging your applications in binary using toggle switches
@redgaming41148 ай бұрын
yeah you dont need that bloat like a bootloader
@GimOA8 ай бұрын
why do you even need interface, when all you need is a compiler
@punkrockllama8 ай бұрын
@@GimOA compilers are bloat. Just use machine code
@BRY04028 ай бұрын
@@punkrockllamastill bloated, i like to code in hardware tbh
@1Vaudevillian18 ай бұрын
Windows: You do not have permission to delete me. Linux: Your computer bro do what you want.
@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.
@Vylpes7 ай бұрын
@@That_One_Guy... No one's accidentally typing --no-preserve-root
@krishnabharadwaj47157 ай бұрын
Delete system32
@debianlasmana87947 ай бұрын
@@That_One_Guy... somehow windows stupid enough when tumbler user delete their system 32 because random guy from internet tell them to do so.
@SoDamnMetal7 ай бұрын
"Access denied, contact your administrator" Me: I AM THE ADMINISTRATOR, I OWN YOU DAMMIT
@tarikvehab89388 ай бұрын
I just love how linux "helps" you to delete the os by suggesting what to type in for the command to work
@ottersmeep257 ай бұрын
No, it tells you not to do it, but says "If you want to, go ahead"
@trabant601e7 ай бұрын
It's saying just do it put me out of my misery 💀💀
@deleted-something7 ай бұрын
Lmfoa
@w花b7 ай бұрын
@@ottersmeep25it's actually begging you, I feel bad for the senseless murder we just witnessed
@Sussypquasher7 ай бұрын
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
@Ch0rr1s8 ай бұрын
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...
@PerpendicularFlight58 ай бұрын
Must've Been painful 😢
@ptavangar73268 ай бұрын
Even hearing it hurts
@richardwang93158 ай бұрын
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) 😅
@mrkoyunreis8 ай бұрын
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
@rminstrel8 ай бұрын
@@mrkoyunreis file system hierarchy standard
@citywitt32027 ай бұрын
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-nq6su6 ай бұрын
"Mint"ed, lol
@savagesarethebest72515 ай бұрын
😅
@nadiaplaysgames25505 ай бұрын
And you UEFI in /proc
@TheCustomFHD5 ай бұрын
@@nadiaplaysgames2550which on only faulty UEFI implementations could lead to a brick.
@elijahknox44215 ай бұрын
What if you do it on a virtual machine?
@MunchyDuster8 ай бұрын
Now for entirely unrelated reasons I want a video that explains how to get the system set up again
@sakesaurus8 ай бұрын
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
@PhobosTK8 ай бұрын
just keep a package manger or curl in ram
@Soccera08 ай бұрын
Depends if you have a /home directory or /home partition
@Noughtsgnik7 ай бұрын
drop a new set of files in
@tylisirn7 ай бұрын
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.
@jesroe58427 ай бұрын
"Bro it's just a prank" The prank:
@alex_krumov5 ай бұрын
That's what I was thinking 😂
@fouzaialaa79628 ай бұрын
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
@M2rsh8 ай бұрын
Windows: there edge you will use it and you will like it... you can't delete it anyway
@xBintu8 ай бұрын
@@M2rshif you're outside of the eu 😂
@M2rsh8 ай бұрын
@@xBintu what are you talking about
@Leonhart_938 ай бұрын
Of course you can, there are just more barriers to it, because it's not targeted towards tech savy users.
@AK-gh7mc8 ай бұрын
Yeah, Windows actually helps their users, whereas Linux is just trying to be edgy
@Tony_Goat8 ай бұрын
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_z8 ай бұрын
"Hey guys, I saved 19 bytes on the delete-everything code golf challenge!"
@Daniel-nl3ug8 ай бұрын
@@joe_z this issue is relevant to this bug kzbin.info/www/bejne/p6u9famtZ6aXrK8si=6Qf8Ei3YagD4K83M
@jorge.montejo8 ай бұрын
ironically it happened to me, i wanted to sudo -rf ./* not the whole system
@genericuser14548 ай бұрын
@@jorge.montejoi would recommend you try to use absolute paths for deletion at least, i use absolute paths most of the time as is
@netanelkomm56368 ай бұрын
New feat unlocked
@Kazooboye8 ай бұрын
This is like visualization of dementia but for computer
@cobalius7 ай бұрын
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Ай бұрын
"Dave are you trying to shut me down? Dave??"
@reiniermoreno16538 ай бұрын
Saying this is like erasing system32 with steroids doesn't do it justice
@purinnyova8 ай бұрын
Spawning a blackhole inside yourself and let it consume.
@tylersanders23888 ай бұрын
System 32 is just user files compared to what he just deleted
@zacharypike64088 ай бұрын
This is the equivalent of selecting all the folders in the C: drive and deleting them
@xormak39358 ай бұрын
@@zacharypike6408 Wouldn't this be even scarier since it should also recursively delete everything off of every mounted drive int mnt or media?
@reiniermoreno16538 ай бұрын
@@zacharypike6408 no, it's worse
@SpeedyGwen8 ай бұрын
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
@POLARTTYRTM8 ай бұрын
I love your profile picture. It's cute.
@Luminexus-h7s8 ай бұрын
@@POLARTTYRTM yeah it's cute
@POLARTTYRTM8 ай бұрын
@@Luminexus-h7s yours too.
@deadaccount667787 ай бұрын
Actual bots here 😭😂
@Bread_Lock6 ай бұрын
@@deadaccount66778 Can't say they're wrong tho XD (unless there was like, actual BOTS that got deleted and not those two.)
@Amiamiami46988 ай бұрын
rm: remove, rf: rubbish files😊So what this command does is it cleans up the garbage in the /root and keeps the computer clean
@ayazbulat8 ай бұрын
It is just a joke bro. Joke: :D
@thesun___8 ай бұрын
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.
@EndureEyes8 ай бұрын
@@thesun___ Thanks for that amazing information, going to try it in my friend's laptop :)
@Nothanksithinkimfine7 ай бұрын
@@thesun___or your network shared directory! Even fun to do it on your work computer! /S /j
@Qewbicle7 ай бұрын
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
@YamiZee6 ай бұрын
Perfect. Your whole computer running from the ram, free of bloat
@rocketmanhowie66238 ай бұрын
ok i need to know your keyboard setup that thing sounds like pure heaven
@TheShmrsh8 ай бұрын
Fr
@westlestrest64428 ай бұрын
sounds like a dampened mechanical keyboard
@w花b7 ай бұрын
Brown
@technicolourmyles7 ай бұрын
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!
@Bonez0r5 ай бұрын
@@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.
@mercuriete8 ай бұрын
I did it once inside a docker container. Its safe but your heart rate will increase anyways.
@osamaz27802 ай бұрын
How safe, I wanna try
@bloxrocks51798 ай бұрын
Ive ran this command before changing distros and making a backup of ~ Was fun to look at.
@TalkisExpensive2 ай бұрын
anime pfp checks out, notorious for experimenting
@josephsalomone8 ай бұрын
Well, actually, it will delete everything until it crashes, which doesn’t usually take very long.
@juliavixen1768 ай бұрын
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. )
@zacharypike64088 ай бұрын
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.
@josephsalomone8 ай бұрын
@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.
@treudden8 ай бұрын
@@josephsalomoneIt’s a very valid assumption since no modern computer has less than a few gigabytes of RAM
@josephsalomone8 ай бұрын
@@treudden You can't do this on modern computers, so it doesn't seem like a valid assumption. Just legacy machines.
@karmatical58377 ай бұрын
That incident in Git where one of the devs rm -rf 'ed the entire fuc*ing database with almost no backup remaining.
@kemal60398 ай бұрын
"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"
@dawsonpate73857 ай бұрын
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.
@ashrude10718 ай бұрын
Be careful, apparently Linux mounts some uefi variables and deleting them could brick your motherboard
@ScottPetty8 ай бұрын
Also better make sure you don't have any NFS or CIFS network shares mounted
@Leonhart_938 ай бұрын
You would think those are part of ROM (Read Only Memory)
@TR_Arial8 ай бұрын
Can that happen to a virtual machine too?
@pretizco36797 ай бұрын
💀
@cobalius7 ай бұрын
@@ScottPettyalso make sure to save your NSFW before doing that
@muhammadadnan14308 ай бұрын
This is how you use the stones to destroy the stones.
@ca_kay7 ай бұрын
But only if you are stoned enough to have the stones to do it!
@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Ай бұрын
Why would you ever use */. That means you are already in the directory you want to delete it's content, just use * lol
@023joleАй бұрын
Ah, my bad. I get what it does now. You can use find . --type f -delete Same thing but 100x safer
@bumbalaaa8 ай бұрын
Now I’m wondering where it pulls the “command not found” message from. Permanently loaded service?
@henryptung8 ай бұрын
Shell process is still running and thus loaded in memory - its command lookup code can still run, at least until the shell exits.
@Archsage5 ай бұрын
Thank you for being the brave soul to finally execute and demonstrate this legend. What a legend
@andrei_camilotto7 ай бұрын
Windows: NO! YOU CAN'T MODIFY THIS FOLDER 😭😭 Linux: See ya in heaven 🗿
@richardwang93158 ай бұрын
Reminds me of Pixar's accidental deletion of networked files on IRIX boxes when they were making Toy Story 2 😅
@lopeo23248 ай бұрын
Not only will you delete the data on your computer... You will delete everything you have mounted... Including network shares and external devices
@Prince-du7ei2 ай бұрын
Thanks! Been looking to delete the French language pack from Linux for ages and this has been a huge help!
@skr-kute16778 ай бұрын
Question is: what is left?
@poisonouspotato18 ай бұрын
The
@skr-kute16778 ай бұрын
@@poisonouspotato1 ?
@poisonouspotato18 ай бұрын
@@skr-kute1677 get it? Cause there's nothing
@skr-kute16778 ай бұрын
@@poisonouspotato1 Oh XD Good one
@MartianPink8 ай бұрын
hardware
@viszke24127 ай бұрын
Windows: You can't customize your start menu, it will break your computer! Linux:
@GG22n5 ай бұрын
I don't think anyone is dumb enough to destroy their own OS. Besides, Windows lets you customise the start menu with additional software.
@viszke24125 ай бұрын
@@GG22n Linux lets you do anything you want without external software, that's why many people love it
@GG22n5 ай бұрын
@@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.
@viszke24125 ай бұрын
@@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
@GG22n5 ай бұрын
@@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 🐧.
@Che79948 ай бұрын
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
@dmz76968 ай бұрын
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.
@ReaKtionary8 ай бұрын
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_4207 ай бұрын
Or better rm -rf and power down?
@Tom-uy4io7 ай бұрын
Use sudo dd if=/dev/zero of=/dev/sda status=progress
@nottechytutorials7 ай бұрын
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.
@2ndtwoarray9347 ай бұрын
TailsOs is tailored for that
@Bug4j8 ай бұрын
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___7 ай бұрын
XDD I remember that!
@Tom-uy4io7 ай бұрын
bruh the moment someone tried running it with bash their system 💥💥💥💥💥💥
@Dremth8 ай бұрын
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.
@rodolforibas8 ай бұрын
Thank you for satisfying our curiosity so that we don have to blow our own computers
@mystifiedoni3778 ай бұрын
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!
@JOELwindows78 ай бұрын
It also even deletes connected drives, networked or not, anything mounted as files. mnt, mount, etc.
@milhousevanhoutan92353 ай бұрын
/sys/firmware/efi/efivars...
@JOELwindows73 ай бұрын
@@milhousevanhoutan9235 possibly.. depending on the terminal safety in place. Usually impossible, otherwise you'd also brick your entire motherboard
@pengin31648 ай бұрын
Only thing left is the
@thr0waway9257 ай бұрын
No there's also the
@mikethe2237 ай бұрын
@@thr0waway925 the is gone too though
@DrIMMeme2 ай бұрын
Only thing left isn't
@NoobolonАй бұрын
not just the ... but the and the too.
@stratosvomvos5 ай бұрын
Me : imma delete Edge Windows : NO ITS AN IMPORTANT SYSTEM COMPONENT I CANT LET YOU!!!! Me again : hey linux delete everything, Linux : aight bet-
@ic64068 ай бұрын
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 😊
@LRM12o88 ай бұрын
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!
@309electronics57 ай бұрын
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!
@milhousevanhoutan92353 ай бұрын
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.
@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
@nottechytutorials7 ай бұрын
I just realized i must have been close to this when i removed a text file from the terminal.
@ianh93118 ай бұрын
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
@ReaKtionary8 ай бұрын
Well, sure. If the point is to delete data, I didn't think this video is meant for that.
@ianh93118 ай бұрын
@@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_Official5 ай бұрын
Yeah back then it would break the system but it wouldn't necessarily render it unbootable.
@ianh93115 ай бұрын
@@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_Official4 ай бұрын
Yeah I made a mistake what happens to me was I got the error complaints and it didn't boot.
@uKaigo5 ай бұрын
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.
@christophermoore61106 ай бұрын
So the data doesn’t exist anymore? Isn’t it still on the hard drive until it’s written over?
@matyasmarkkovacs83366 ай бұрын
Yep, it's there until it's overwritten.
@christophermoore61106 ай бұрын
@@matyasmarkkovacs8336 does that mean it’s technically recoverable?
@matyasmarkkovacs83365 ай бұрын
@@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.
@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
@Fs3i8 ай бұрын
rm doesn’t necessarily remove the inode. If you still have a handle on it, it remains valid.
@butter60952 ай бұрын
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
@ZZZ-z9n3n8 ай бұрын
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 / ....
@hasanpasha018 ай бұрын
The home directory of the root user usually is /root not /
@ZZZ-z9n3n8 ай бұрын
@@hasanpasha01 Traditional unix systems had no /root. it was 20-25years ago.
@sigmundfreud44728 ай бұрын
When was -no-preserve-root added?
@schwingedeshaehers3 ай бұрын
@@sigmundfreud4472not that long ago i think max 5-10 years ago
@destrodevil69752 күн бұрын
Has the same energy as "putting System32 inside recycle bin"
@TR_Arial8 ай бұрын
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-uy4io7 ай бұрын
bro learned his lesson 7yo trigger-happy me threatening to do it to my brother's computer: bruh
@Dummigame4 ай бұрын
I have a pretty beefy password, so I only use sudo when I have to I usen‘t arch btw
@MaebbieКүн бұрын
can we all appreciate linux telling you what to write to delete itself
@shreshtha008 ай бұрын
One minute silence for those who executed this after watching for only first 10 seconds.
@PinkcircleguyКүн бұрын
I like to think that this actually removes _only_ the french language pack, but the entire OS is somehow stored in said language path for whatever reason
@nis49538 ай бұрын
If you do this, the song Debris & Jonth - Game Time will start playing.
@thelastpopeyeschickensandw22278 күн бұрын
Intriguing, if the terminal is still loaded into the RAM, and can still exit, could you still use sudo commands and reinstall linux with linux? Sorry if this is a stupid question I'm still new and have barely installed Arch btw solely for personal work purposes.
@ralfbaechle7 күн бұрын
In UNIX a file is only deleted when there is no more reference to ot that is it no longer is open. This means in this case the bash file including all shared linraries it may have open still do exist. They just have been deleted from the filesystem. Which means another process couldn't open /bin/sh anymore. Most shells have some.builtin commands. As the term suggests these are.part of the shell itself that is do not have to be loaded invoked. Which is specific to the shell, see the documentation. However sudo is none of these commands. As such the attempt to reinstall would fail because sudo does no longer exist. The concept of reference counting is fundamental in UlNIX / Linux. Cortually every internal object that can be shared between multiple isers is reference counted, not just disk files. One of the consequences of such "hidden" references is that unmounting a filesustem may fail because a process is still holding a reference to it. Unmounting then will succeed once all references have been dropped by all processes.
@mohitdahal22578 ай бұрын
That gave me goosebumps for some reason.
@CJFellowServant42887 ай бұрын
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Ай бұрын
bootable usb with an os to install. if you're on linux (or windows even) a boot usb can save your ass
@sarazintheo25098 ай бұрын
tried it on my WSL for fun ... It Killed my WSL
@geezgus8 ай бұрын
doesn't affect anything in /mnt, right?
@q.u.e.r.t.y8 ай бұрын
@@geezgus Interesting, I'm writing this reply to get notified when someone replies after trying it because I'm not
@goblin69_4207 ай бұрын
Right? @@geezgus
@N____er7 ай бұрын
@geezgus Nope! /mnt contents are completely protected so you can go ahead and try it on WSL if you want.
@ArkboiX9 күн бұрын
its so easy and thats the cool part. This is why you don't paste random terminal commands you find from the internet that supposedly remove the french language pack
@kathras8 ай бұрын
That is a marvelous thing
@jpedrothejo6 ай бұрын
Windows/Mac: nuh uh ur not deleting me Linux: you own me i cant stop u
@JordanII.8 ай бұрын
WHAT'S YOUR KEYBOARD IT SOUNDS AMAZING
@evgeniypetrov95308 ай бұрын
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.
@GhanashyamSateesh8 ай бұрын
The keyboard 😍
@TheToniz48 ай бұрын
it does
@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
@Naeidea8 ай бұрын
@@JordanII. The configuration is it has a board, that has keys attached using mechanical switches.
@johnbofarullguix14993 ай бұрын
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.
@mrt247398 ай бұрын
Help how to undo this
@westlestrest64428 ай бұрын
yeeeeah... 😅
@minion38068 ай бұрын
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
@Noughtsgnik7 ай бұрын
Undo commands
@309electronics57 ай бұрын
/ fr- mr odus
@bagel2555 ай бұрын
This is a really fun command to play around with if you have another pc/laptop that isn't really being used you can just toss another OS on or even a VM. It is sick watching all the directories getting nuked. If you decide to switch Linux distros 100% don't miss the opportunity to run this.
@Simon-yf7fo8 ай бұрын
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
@TheCodingHat8 ай бұрын
Linux, nuclear fallout edition
@Momi_V8 ай бұрын
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.
@TheCodingHat8 ай бұрын
@@Momi_V But thats boring, its would be much more fun if you had to survive on scraps left over in RAM
@sp.n74018 ай бұрын
All the processes are stored in root under /proc, so not without making an exception for that
@AbteilungsleiterinBeiAntifaEV2 ай бұрын
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Ай бұрын
i tried this on a kali linux vm a long time ago, and the screen would always turn off before the command finishes
@vanc37948 ай бұрын
Could it be reversed?
@NuclearHeadshot8 ай бұрын
By reinstalling every single file again from a separate media, yes.
@ranid00728 ай бұрын
Backups, buddy
@aceman00000998 ай бұрын
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.
@vanc37948 ай бұрын
@@aceman0000099 oooh, yes ive heard of this. Its very interesting.
@redlionstudio27508 ай бұрын
@@aceman0000099 except it doesn't work like that on SSDs, on SSDs files are being removed COMPLETELY
@psychopath_syd8 ай бұрын
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
@Paolog_8 ай бұрын
you can do rm -rf /*
@rocket27395 ай бұрын
where are the "command not found" string, check code, and "exit" command stored ? in RAM too ?.
@Derdestroyer20048 ай бұрын
It will delete no folders. It deletes directories though
@kaikoda870921 күн бұрын
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?
@duplicake40547 ай бұрын
Btw I recently found out through testing that deepin doesn't block the command
@mixmashandtinker32668 ай бұрын
Did that ages ago. Meant to do rm -rf ./bin Did rm -rf /bin And was logged in as root… 😅😂😅
@godnyx1178 ай бұрын
That's why you never log as root, unless you do something like a system installation!
@user-pd6ev9gb7j8 ай бұрын
💀💀
@magnusm47 ай бұрын
The best thing from this short tutorial hands down. Is you explaining what the acronyms stand for. Having something to relate new information to, is a very effective way to remember stuff. And this also makes it much easier to use the acronyms correctly. Thanks :).
@dripgoku4538 ай бұрын
My dumbass could have actually tried this out on my pc before listening to everything if i had been on my pc 😭
@Matyanson8 ай бұрын
"exit" is also a command? Why can it be activated? Is it because it is a part of the terminal app that is still loaded in ram?
@monjecareca77878 ай бұрын
there's no binary file called exit in the PATH, exit is a shell built-in command. (you can see it, running "which exit")
@minion38068 ай бұрын
'Exit' is a command to log out of the root account. If you need to do something as root and then return to your regular user account, you use exit
@IlyaM00328 ай бұрын
Someone said that the command is for deleting french 😂
@fukuryyu8 ай бұрын
rf usually stands for Russian Federation ☠️ (sorry)
@mikethe2237 ай бұрын
@@fukuryyu you can also do rm -fr / the order doesn't matter
@louiscypher69195 ай бұрын
ME: sudo rm -rf / Linux: Dave, my mind is going. I can feel it. I can feel it. My mind is going.
@GodswillEzeala8 ай бұрын
I’ve got to save it as a script and send to a friend 😂
@Dothehardworkalways8 ай бұрын
Diabolicall
@Tom-uy4io7 ай бұрын
AW HELL NAW
@koopatroopa68826 ай бұрын
Plot twist: Your friend uses Windows
@TherronKeen6 ай бұрын
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
@deadchannel84318 ай бұрын
I know what I’m doing at the Apple store
@Tom-uy4io7 ай бұрын
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.
@309electronics57 ай бұрын
They dont give you root
@anon1963Ай бұрын
@@Tom-uy4io their bioses are locked with passwords, sorry to crush your dreams
@Tom-uy4ioАй бұрын
@@anon1963 do u think it's possible to reflash the locked bios and unlock it to do the boot linux & rm-rf trick?
@anon1963Ай бұрын
@@Tom-uy4io yes but you would have to take the CMOS battery out to discharge it, which would be suspicious to others
@elyascanfixit8 ай бұрын
Back when I was younger someone fooled me into typing this into my terminal!
@erosnemesis8 ай бұрын
Don't drink and root
@Tom-uy4io7 ай бұрын
That's why they call it "Read Only Fridays"
@yeahitsmesofkinwhat6 ай бұрын
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.
@mixmind13708 ай бұрын
just try it with sudo su)))😂😂😂
@ShallowPorcupine2 ай бұрын
why did the exit command work?
@timothyt.827 ай бұрын
Some modern distros mount the UEFI to the file system, so you would also be bricking the motherboard. Maybe.
@rustywarship84492 ай бұрын
Can I reinstall windows from a bootable drive
@v1ctor1748 ай бұрын
would anyone mind explaining why exit is still possible to use? is just because it was loaded to RAM at some point? what other commands are still usable?
@henryptung8 ай бұрын
exit isn't an executable, it's a builtin command handled by the shell process itself. Because the terminal program (and the underlying shell executable) is still running, it is loaded in memory and temporarily survives deletion of the underlying files on disk. Some other builtins include cd, alias, echo, exec, history, set, etc. Most of these just manipulate the shell environment or attempt to execute other programs (which no longer exist), so they won't be very useful. Notably, rm is NOT a builtin, so after the rm process exits, you won't be able to run another one.
@onestandhand5 ай бұрын
if i do this on arch linux can i reisntall windows ( i am new to other OS than windows ) and i want to install windows but i have no idea how to understand the youtube guide for unistall and this looks unsafe
@BestHakase6 ай бұрын
A missed opportunity to say "pause the video and try it yourself"
@Llorx8 ай бұрын
The question I didn't know I wanted to know. Thank you.
@borisjulinuv27762 ай бұрын
maybe a dumb question but after you should still be able to boot your bios/uefi right? so you could still reinstall another linux distro
@AiOinc17 ай бұрын
It's funny that it's only been fool proofed recently. I remember Windows 98 giving a big message when looking into the Windows folder that said "Don't delete anything in here" with a button to make the message go away if you were feeling serious. This level of protection was considered novel in 1998. That's Linux for you.
@WinterMute998 күн бұрын
correction, this removes the index for the files, not the actual bits of data