When they say "Run rm -rf /*"

  Рет қаралды 122,973

Virbox

Virbox

Күн бұрын

Пікірлер: 296
@Reavenk
@Reavenk 2 жыл бұрын
When Pixar was making ToyStory 2, legend has it that an errant command line wiped all of the movie assets and almost deleted the entire production of the movie. Then they realized a stay-at-home mom had a local backup at her house, and after restoring it they only lost 2 weeks of work instead of everything.
@Virbox
@Virbox 2 жыл бұрын
Wow, I didn't know that
@cafebean
@cafebean 2 жыл бұрын
only two weeks
@ViewerEm
@ViewerEm 2 жыл бұрын
@@cafebean compared to everything though
@asdfssdfghgdfy5940
@asdfssdfghgdfy5940 2 жыл бұрын
Wtf why wouldn't a studio of that size be running multiple NAS's
@Lin_The_Cat_
@Lin_The_Cat_ 2 жыл бұрын
Yep! In one of the later Toy Story movies, there's a scene where a car has a license plate and the plate ID is 'rm -rf /'
@ΚωνσταντίνοςΟυρούμης
@ΚωνσταντίνοςΟυρούμης 2 жыл бұрын
If I had a coin for every time I have made a backup, I'd have zero coins. If I had a coin for every time I needed a backup, I'd have 5 coins 💀
@Virbox
@Virbox 2 жыл бұрын
Haha true story 😄
@chinh4thepro
@chinh4thepro 2 жыл бұрын
id have atleast 15
@wsketchy
@wsketchy 2 жыл бұрын
t...timeshift....? timeshift anyone..?!
@그냥사람-e9f
@그냥사람-e9f 2 жыл бұрын
If I had a penny for every time I made a backup, I'd have like 30 If I had a penny for every time I needed a backup and were able to use one, I'd have 3 cent 🗿
@ΚωνσταντίνοςΟυρούμης
@ΚωνσταντίνοςΟυρούμης 2 жыл бұрын
Black air force energy
@mathgeniuszach
@mathgeniuszach 2 жыл бұрын
You could also just use "--". In other words: "rm -r -- -f" "--" tells the command parser to stop professing flags and treat everything else as arguments.
@PanDiaxik
@PanDiaxik 2 жыл бұрын
Or rm ./-f
@zlorf_youtube
@zlorf_youtube 2 жыл бұрын
Ohhh cool. Nice to know. Thanks
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
All the quotation marks and backslashes make no difference because they are being interpreted by the shell, and this is not a shell problem: it’s a problem with the behaviour of the command itself, that (normally) every word beginning with “-” is treated as an option, not a filename. The “./” prefix works in this case because rm is looking for file names. It wouldn’t work with other commands where the arguments are not file names. This is why the “--” convention was introduced, and is respected by many commands: it says “everything after this is an argument of some kind, not an option”.
@pallas1634
@pallas1634 Жыл бұрын
Or rm -r '-f', I thought that it worked because of (single quotes). Sorry.
@mathgeniuszach
@mathgeniuszach Жыл бұрын
@@pallas1634 Unless you're using some strange version of Linux, that command does not work.
@someonestolemyname
@someonestolemyname 2 жыл бұрын
Things you shouldn't do - run shell as root - running stranger's code without checking what it does especially as root - not backing up your data - using rm without safeguard especially with -r and -f flags - not using gio trash, trashcli or other trash utilities which you can recover from
@mrbanana6464
@mrbanana6464 2 жыл бұрын
Interactive flags for rm gives you alarm fatigue and makes you less likely to double check what you’re deleting
@ChimeraX0401
@ChimeraX0401 2 жыл бұрын
and not making snapshots so that you can just revert back when you broke your system
@zackattack9228
@zackattack9228 2 жыл бұрын
I am broke bro, I can't do backups
@sleaf6
@sleaf6 2 жыл бұрын
I do all but one of these things
@character640p
@character640p 2 жыл бұрын
@@zackattack9228 Use Rar and telegram bro
@john_swanson
@john_swanson 2 жыл бұрын
change the world my final message goodbye
@сосковыйёрж
@сосковыйёрж 2 жыл бұрын
The thing is... If you do backups and the disk where the backups are stored is still mounted, sudo rm -rf /* gonna delete it too💀
@rotteegher39
@rotteegher39 2 жыл бұрын
btrfs subvolumes are separtare from what is mounted and you can't delete them even with rm -rf
@erikkeever3504
@erikkeever3504 Жыл бұрын
3-2-1: three copies total (including working), in two locations, one of which is off site.
@ruslansanzharov5825
@ruslansanzharov5825 Жыл бұрын
Normally backups are mounted in read-only mode to prevent abuses like this
@josephwhittaker2065
@josephwhittaker2065 6 ай бұрын
Offsite backups ftw
@Tryh4rd3rr
@Tryh4rd3rr 4 ай бұрын
@@erikkeever3504no, 1 other one is another format. Like 2 ssds and 1 hard drive etc.
@blank001
@blank001 2 жыл бұрын
You should always take your PC's backup and store it on the same PC it saves a lot of space Source: trust me brah
@louiesatterwhite3885
@louiesatterwhite3885 2 жыл бұрын
At least store it on a different drive than your system drive 💀
@user-xn3kt6bn5r
@user-xn3kt6bn5r Жыл бұрын
@@louiesatterwhite3885 nah brah just make new partition. Save loads of $$
@devrim-oguz
@devrim-oguz 2 жыл бұрын
The trash disappearing got me 😂
@link_team3855
@link_team3855 5 ай бұрын
HE DELETED THE TRASH BIN! AAAAAAA
@private895
@private895 3 ай бұрын
A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN A BIN IN A BIN .
@aya-hl5bk
@aya-hl5bk 2 жыл бұрын
"Ok, lemme just LiveCD in" Funniest thing here
@godnyx117
@godnyx117 Жыл бұрын
*Cringest
@WolfyRed
@WolfyRed Жыл бұрын
@@godnyx117what?
@godnyx117
@godnyx117 Жыл бұрын
@@WolfyRed Did I stutter?
@WolfyRed
@WolfyRed Жыл бұрын
@@godnyx117 Fym? What is cringe about LiveCD
@godnyx117
@godnyx117 Жыл бұрын
@@WolfyRed Do you have a time machine?
@callisoncaffrey
@callisoncaffrey 2 жыл бұрын
The guy didn't like. The -f folder was gone, wasn't it? Edit: I meant "didn't lie" obviously.
@callisoncaffrey
@callisoncaffrey Жыл бұрын
@@monad_tcp I'm not. I'm using OpenBSD. Also you know there are other distros than suicide linux, right?
@WolfyRed
@WolfyRed Жыл бұрын
@@callisoncaffreywhat Tf is "suicide Linux"?
@callisoncaffrey
@callisoncaffrey Жыл бұрын
@@WolfyRed You type one command wrong and it deletes your hard drive. Can't recommend.
@fltfathin
@fltfathin 4 ай бұрын
@@callisoncaffrey same thing can happen in windows, there's a reason why there is administrator's code of conduct.
@callisoncaffrey
@callisoncaffrey 4 ай бұрын
@@fltfathin What? Please state what you impression of me is.
@filipsr4452
@filipsr4452 2 жыл бұрын
rtfm :) POSIX.1-2008, volume "Base Definitions", section 12.1 "Utility Syntax Guidelines", item number 10: "The first -- argument that is not an option-argument should be accepted as a delimiter indicating the end of options. Any following arguments should be treated as operands, even if they begin with the '-' character."
@Virbox
@Virbox 2 жыл бұрын
bbut not all utilities are POSIX-compliant 🤓 (although GNU coreutils are)
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
I wrote a generic packup-blend utility to pack up a Blender document and automatically include its external dependencies in a single archive, with support for tar, zip and 7z formats. Of the three, only the zip command did not recognize “--” in any form.
@fltfathin
@fltfathin 4 ай бұрын
if it were me i'd rename/ move that folder then delete it. guy was playing with fire to begin with
@etaashmathamsetty7399
@etaashmathamsetty7399 2 жыл бұрын
Finally beluga but it's a Linux channel U deserve more subs
@LinuxPlayer9
@LinuxPlayer9 2 жыл бұрын
That's what my brother has been saying
@godnyx117
@godnyx117 Жыл бұрын
The first part, gave me PTSD!!!! I once had a file in my home directory called "~". GUESS what command I run to remove it!!!
@te4enie_donnyx_trav
@te4enie_donnyx_trav 9 ай бұрын
Damn😂😂
@yusinwu
@yusinwu 4 ай бұрын
Self-initiated homelessfication protocol
@lukasjetu9776
@lukasjetu9776 Ай бұрын
as a non bash user... please show me what command did you run
@godnyx117
@godnyx117 Ай бұрын
@@lukasjetu9776 I was inside my home directory and I run: `rm ~`
@lukasjetu9776
@lukasjetu9776 Ай бұрын
@@godnyx117 what all did it delete?
@ihavenoideadanny
@ihavenoideadanny 28 күн бұрын
this is a rm -rf "$STEAMROOT/"* type of moment
@Vienna3080
@Vienna3080 Жыл бұрын
He debloating Ubuntu
@SodalisUK
@SodalisUK 5 ай бұрын
I actually had this happen on a real production IT system that I was working towards taking over the management of. I was working for an outsourcing company, and the system was in production and being operated and managed by the application vendor. The reason we hadn't taken it over was because there was zero operational documentation and zero scripted operations. So the vendor was operating it manually based on instructions scribbled on a scrap of paper. These instructions said: 1. "cd /tmp"; 2. "rm -yr *"; 3. "reboot". Unfortunately, one evening having done step one, the operator received a telephone support call and as part of answering that he went root (presumably with "sudo -i" which put him back in the root directory). When he finished the call he executed steps 2 and 3 without exiting root thus doing EXACTLY what this video shows. D'UH!!! To cap it all, it then turned out that the system backups hadn't been working either and hadn't been tested and it took them 2 or 3 weeks to rebuild this production system. DOUBLE D'UH!!!!!! I might add that this was one of two similar screw ups (the other resulting from deletion of the production SQL database) at the end of a disastrous fixed price application development where the system has already been rejected and redeveloped from scratch and where the initial go live was abandoned twice, once because an untested system timezone change caused it to fail, and once because the system has never been tested on a production sized database, and several missing indexes resulted in use response times on a linked production customer call healing system going from 1sec to over 30mins. Put simply a fiasco from start to finish from a MAJOR MAJOR software house.
@horsepowermultimedia
@horsepowermultimedia Жыл бұрын
Sudo rm -rf /* is the System32 deletion of Linux.
@_kitaes_
@_kitaes_ 5 ай бұрын
more like deletion of / (hidden root folder in windows) that includes all partitions
@fluoriteByte
@fluoriteByte 3 ай бұрын
Its more like deleting the the whole C drive and all other drives that are attached
@AgentPothead
@AgentPothead 2 жыл бұрын
LMAO that Ducktales moon theme song hit out of no where.
@martinhorner642
@martinhorner642 2 жыл бұрын
I didn't believe it was that hard to quote '-f' to rm as it was shown in the video. So I wrote a program to create an actual '-f'. Now I have to rm -rf /*
@GSBarlev
@GSBarlev 2 жыл бұрын
I can't believe I'm saying this, but can't you just open a GUI file explorer and delete it from there? This actually happened to me a few weeks ago, but it was ".." and not "-f" My solution was to use python pathlib: >>> from pathlib import Path >>> files = Path(".").glob("*") (eyeball to identify the cursed file) >>> cursed_file.unlink()
@sylv512
@sylv512 Жыл бұрын
all you have to do is “rm -rf -- '-f'”
@BurzowySzczurek
@BurzowySzczurek Жыл бұрын
Nice Beluga style video. Keep going!
@georgewang5516
@georgewang5516 2 жыл бұрын
Thanks! Your video content is the safest and most useful
@govindsanal3092
@govindsanal3092 2 жыл бұрын
That’s one way to take out the trash
@dsihacks
@dsihacks 2 жыл бұрын
ba dum, tsss
@andreasjoannai6441
@andreasjoannai6441 3 ай бұрын
Me: Sees rm -rf knowing that's the linux equivalent of del Also me: Noticing it ends in /* In other words, running rm -rf /* deletes every system-accessible file and folder, bricking the OS.
@zitrax506
@zitrax506 2 жыл бұрын
it's blatantly realistic, great video 🐧🖤
@spaceowl5957
@spaceowl5957 2 жыл бұрын
This was so emotional and inspirational
@rea9lizer
@rea9lizer 2 жыл бұрын
It has been decades but Take off and land still gets me
@3ndgamer28
@3ndgamer28 2 жыл бұрын
this command was run when toy story 2 was still being made but then some employee that worked there and had a backup of the files and everything was fine
@randomname2437
@randomname2437 2 жыл бұрын
Bless photorec
@chri-k
@chri-k 2 жыл бұрын
would it be logical for rm -rf /.. to disintegrate everything connected to the system bus?
@MikePainstill
@MikePainstill Ай бұрын
That " /* " makes all the difference in the system. So, wake up, Arch user, wake up and smell the upgrade bork.
@UltraNyan
@UltraNyan 2 жыл бұрын
Photorec - vomits all your files into a big pile
@Geitungur
@Geitungur Жыл бұрын
That bit at the end reminded me of a story I heard where some serial killer took his laptop to a PC shop because it broke and when they fixed it it turned on to his desktop. With a bunch of photos of his victims. :|
@pam4962
@pam4962 Жыл бұрын
I really, really thought that I was watching Beluga for a sec lol
@aarnealplayzgames9580
@aarnealplayzgames9580 4 ай бұрын
I wanted to sub to some random due who had no content and found you, gongrats… I guess?
@oneandonly_h4
@oneandonly_h4 2 жыл бұрын
Oh man I had that problem when I was first starting with Linux.
@directx872
@directx872 2 жыл бұрын
rm -rf /* removes EVERYTHING so you effectively brick your system.
@directx872
@directx872 2 жыл бұрын
@@parkman29 want to test your luck?
@electric7487
@electric7487 Жыл бұрын
In 2016, on some machines with SystemD and UEFI, running "rm -rf /" or "rm -rf /*" could permanently hard-brick your machine since the filesystem containing the EFI firmware's configuration files, located at /sys/firmware/efi/efivars, was mounted read/write. They fixed this in 2017 by mounting them read-only.
@Sh0071n6
@Sh0071n6 4 ай бұрын
The first thing the noob at the terminal does = "sudo rm -rf /*"
@nxx99
@nxx99 8 ай бұрын
my will to live when I started middle school
@danielbelmir0
@danielbelmir0 2 жыл бұрын
i'm using git a lot for my projects, i know i'm the only that uses my programs but that's still a lot of work so it's good to have repositories on the internet to backup and be able to clone and push changes from any computer.
@GSBarlev
@GSBarlev 2 жыл бұрын
You'd also be surprised at who is benefiting from your code being out there. I've gotten into Minecraft modding, and there is *zero* documentation for anything, especially when a new version's just been released and you're trying to stay compatible. Oftentimes I'll search github for an import of the specific class I'm needing to reference and learn the proper usage pattern from a random mod with twenty downloads.
@SNSISNSJISEJSJS
@SNSISNSJISEJSJS Жыл бұрын
And that's the moment that he remembered that he have fucked up 💀
@sylv512
@sylv512 Жыл бұрын
are you referencing the homework folder 💀
@SNSISNSJISEJSJS
@SNSISNSJISEJSJS 4 ай бұрын
🤣🤣💀💀​@@sylv512
@FeinesFabi
@FeinesFabi 2 жыл бұрын
Send them this instead so they (most likely) cannot recover their data: 'dd if=/dev/random of=/dev/sda bs=4096'
@Virbox
@Virbox 2 жыл бұрын
a real villain 😈
@Noob-gb6bn
@Noob-gb6bn Жыл бұрын
What does this do?
@electric7487
@electric7487 Жыл бұрын
​@@Noob-gb6bn It corrupts your disk with random gibberish.
@Noob-gb6bn
@Noob-gb6bn Жыл бұрын
@@electric7487 aight thx, but how?
@electric7487
@electric7487 Жыл бұрын
@@Noob-gb6bn /dev/random outputs random when it's called. The "if" stands for Input File, and "if=/dev/random" means you're using /dev/random as the source of the data to be written. "of" stands for Output File, and "of=/dev/sda" means that the data is to be written to /dev/sda. If /dev/sda is the location of your hard drive's main partition, you will corrupt your install and will force a format and reinstallation. An alternative is "dd if=/dev/zero of=/dev/sda", which overwrites /dev/sda with zeros instead of random data.
@markusTegelane
@markusTegelane Ай бұрын
To be fair, this will eventually remove the `-f` directory
@BloomDevelop
@BloomDevelop 3 ай бұрын
Oh shit I remember that when I did this exact command on a container on a wsl (before I moved to Linux) and it deleted the whole wsl but at the cost of apps shortcuts vanished.
@dadudeme
@dadudeme Жыл бұрын
I am familiar with this procedure. It is a pain to recover a whole windows system after writing rasbian over the first 2 gigs.
@barneytf2
@barneytf2 Жыл бұрын
Beluga, but he uses Linux. And I like it
@ridndev_
@ridndev_ 5 ай бұрын
i once used multiflasher or whatever it is called and flashed my data backup instead of my USB drive 100 gb of "projects" down the drain
@anywallsocket
@anywallsocket 2 жыл бұрын
Yfw you run >rm file * instead of >rm file* 💀
@edwolt
@edwolt 2 жыл бұрын
Today I started running "rm -r /home" as root, I stopped it as soon as I see the mistake. I hope no important file was lost.
@dtkedtyjrtyj
@dtkedtyjrtyj 2 жыл бұрын
rm -- -f might work But I suspect it wont format in KZbin.
@Virbox
@Virbox 2 жыл бұрын
This is also correct
@RareScrap
@RareScrap Жыл бұрын
What a good ending!
@alfaalfa993
@alfaalfa993 2 жыл бұрын
Why does he keep so many low-res photos?
@sylv512
@sylv512 Жыл бұрын
that’s his homework folder always protect your homework folder
@supercellodude
@supercellodude 2 жыл бұрын
I wonder how many normal distros (using glibc and most programs dynamically linked) try to have at least statically linked core utilities like rm. 'cuz, you know, once you delete glibc*.so*, rm might not be able to run anyways, but much of the system data would already be deleted
@monad_tcp
@monad_tcp Жыл бұрын
It's always able to run, because this is Linux, it memory maps the file then delete the reference to the inode and keep the inode until the program closes. Unlike windows, that will lazy load the executable and keep it both locked in the file system and memory mapped. The file system could technically unlink the record on the MIB, and keep the blocks loaded and memory mapped, so you can actually delete the file, but that's not how the DLL loader works. Which is incidentally why the system has to reboot for some updates, most of them are able to just be service restarts, but when it's kernel mode, they can't. You can close the file handles and delete things, which is even cool, as it's like pulling the rug from under the process, the process crashes after you delete the file, easy trick. I use it all the time, close the handles using process hacker and then delete files and watch programs cry and commit suppuku because their file handles became null. (some are able to deal with it, Explorer is one, which is good as it sometimes keep handles dangling locked)
@sovietunion1989
@sovietunion1989 Жыл бұрын
Everyone who watches Toy Story 2 will remember this
@ZE_R0GT
@ZE_R0GT 4 ай бұрын
this seems like a beluga clone
@naaaaaaaaathan
@naaaaaaaaathan 3 ай бұрын
rm -rf "-f" and you made it
@sofiaknyazeva
@sofiaknyazeva 2 жыл бұрын
--no-preserve-root has left the chat
@TheGoblinoid666
@TheGoblinoid666 2 жыл бұрын
Once I had to do this to remove a kally linux instalation, and it worked.
@commandcracker42
@commandcracker42 4 ай бұрын
Use btrfs and you can run rm -rf /* any time you want
@yeshwantkota230
@yeshwantkota230 4 ай бұрын
Tha one windows user: Wait, my os is giving me errors
@Bob-bl1ey
@Bob-bl1ey 4 ай бұрын
You don't have to type sudo, if u r already logged in as root
@Iceozi
@Iceozi Ай бұрын
Tip: Whenever running a Linux command, make sure to make a backup before doing it!
@yuvalid4156
@yuvalid4156 2 жыл бұрын
How would you delete a folder named -f? Genuinely asking
@Virbox
@Virbox 2 жыл бұрын
Two options: 1) rm -r ./-f 2) rm -r -- -f
@warmike
@warmike 2 жыл бұрын
@@Virbox or you know just use the gui
@coffeedude
@coffeedude 2 жыл бұрын
@@warmike you can't if you are ssh-ing into a server
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
Pro tip: if you are deleting a directory you know/expect to be empty, use “rmdir”, not “rm -rf”. Because “rmdir” will fail with an error if in fact the directory is not empty.
@StrivingArrow
@StrivingArrow Жыл бұрын
How do I restore the files?
@electric7487
@electric7487 9 ай бұрын
From your daily backup, of course.
@polocatfan
@polocatfan 6 ай бұрын
situation like this happened to me in a discord server. there was an issue going on with a library and they recommended I manually upgraded it. When I did that my system got bricked and when I told them they acted like they never recommended it and told me off. Turns out they got incredibly pissed off that I reported a bug in their "PERFECT PROGRAM" or thought I was lying so they decided to "prank" me so they intentionally sabotaged my machine. Told them to go fuck themselves and right before I left I saw a message that basically said "oops you were right...". fuck that nonsense. fuck all linux developers.
@seekyboi23
@seekyboi23 4 ай бұрын
guild* 🤓🤓🤓
@Adam_Lyskawa
@Adam_Lyskawa 2 жыл бұрын
When you use clouds, you don't really need big backups. BTW, files you own end up owning you.
@character640p
@character640p 2 жыл бұрын
Bro, what clouds do you use?
@nothanks5531
@nothanks5531 Жыл бұрын
@@character640p guava ice geekbar
@character640p
@character640p Жыл бұрын
@@nothanks5531 what does it even mean?
@Paddy_1245
@Paddy_1245 3 ай бұрын
Yea I ran it before in cmd and it broke my computer gpedit and regedit all gone😢
@colour_bloo
@colour_bloo Жыл бұрын
Nooooooo - not LMMS... It's going to take forever to re-install all those plugins 😢
@toster9960
@toster9960 5 ай бұрын
you could just rm -r -- -f
@पिज्जा
@पिज्जा 4 ай бұрын
The more terrible thing is mess up if and of in data duplicate command
@antifurploppa
@antifurploppa Жыл бұрын
i did that in my archiso and its boomed
@Maruchipawa
@Maruchipawa 4 ай бұрын
I have absoultly no idea wth this is about
@retzerR
@retzerR Жыл бұрын
I made a directory called -f, fix 2 ways 1. GUI 2. rm ./-f -r (without r it will complain about not being a file)
@nikoszervo
@nikoszervo Жыл бұрын
I dont make backups, I upload everything on the internet!
@butlazgazempropan-butan11k87
@butlazgazempropan-butan11k87 2 ай бұрын
Its the "alt + f4" of linux
@matthewlui1004
@matthewlui1004 2 жыл бұрын
A permission error you say, why not do sudo chown -R /
@electric7487
@electric7487 Жыл бұрын
I actually did that once back when I was still using my old laptop. I was trying to install something and it threw lots of "permission denied" errors. Since I didn't know much about the Linux filesystem and file permissions at the time, I foolishly ran "sudo chown [username] -R /*" in an attempt to "fix it". The result? sudo isn't working anymore ("sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set"), even pkexec errors out ("pkexec: must be setuid root"), and a lot of other programs throw errors. When I tried to reboot my system it would always hang before getting to the login screen. Turns out that sudo, ssh, sendmail, pkexec, the login binary, and many other applications require filesystem permissions checks in order to run safely since they would open up too many security holes otherwise. When I ran "chown" on my entire root directory, it compromised everything. The worst part about running any sort of chmod or chown recursively is that it's lossy and irreversible by nature, and doing on the root directory is especially dangerous. I ended up making a backup of my data and reinstalling Ubuntu over my home folder since it was too much hassle reverting everything back.
@KangJangkrik
@KangJangkrik 4 ай бұрын
Just like PDN admins, except they won't bother to restore
@hairynamjari790
@hairynamjari790 2 жыл бұрын
Just run rm -r -- -r
@gdplayer1035
@gdplayer1035 10 ай бұрын
windows user moving to linux
@Pwnagotchi-0
@Pwnagotchi-0 9 ай бұрын
I could learn something from you guys
@Plumjet09
@Plumjet09 4 ай бұрын
Technically it did delete it
@AnimeZNT_15
@AnimeZNT_15 3 ай бұрын
Nahh bro just told him to delete all files in root directory
@calculator_gaming
@calculator_gaming 4 ай бұрын
what dies rm -r ./-f do?
@ЛордКекер
@ЛордКекер Ай бұрын
he said '-r -f', no '-rf'
@rotteegher39
@rotteegher39 2 жыл бұрын
That's why I use btrfs or zfs
@ch4n4o2
@ch4n4o2 Жыл бұрын
Who needs backups if you can just reinstall the system
@methanbreather
@methanbreather 2 жыл бұрын
you know - if your file system supports snapshots, it isnt that bad....
@Lucas-ky7dc
@Lucas-ky7dc 2 жыл бұрын
Wait, `rm -r \-f` wouldn't work? Well, guess I need to test that myself.
@jakdziala
@jakdziala 2 жыл бұрын
I guess it's maybe because of the backslash, linux uses the forward ones upd: yep, he wrote that in the description
@chri-k
@chri-k 2 жыл бұрын
@Watcher no, you escape the character “-“, which yields “-“, and so that backslash does absolutely nothing
@natywubet2175
@natywubet2175 Жыл бұрын
rm is depreciated, use shred instead
@craftrumzen2393
@craftrumzen2393 Жыл бұрын
What about 'rm -r ~./-f' ?
@philosophicalgamer2564
@philosophicalgamer2564 2 жыл бұрын
This should be an amine
@kokodi01
@kokodi01 4 ай бұрын
silly little me did sudo chmod /* 000, worst mistake of my life.
@m4rt_
@m4rt_ 2 жыл бұрын
no rm -r -f /* --no-preserve-root
@mustangrt8866
@mustangrt8866 Жыл бұрын
just cp lib and src, rm rf the projects and make new projects folder
@InfiniteCoder01
@InfiniteCoder01 2 жыл бұрын
Actually you need "rm -rf /* --no-preserve-root"
@sylv512
@sylv512 Жыл бұрын
distro-dependent, i think
@NoobDeSupreme
@NoobDeSupreme 2 жыл бұрын
HAHAHA This is so true XD.
@link_team3855
@link_team3855 5 ай бұрын
... is 'sudo rm -rf' the alt F4 of linux?
@Tom-uy4io
@Tom-uy4io 4 ай бұрын
It's the delete C:\ of linux It deletes every single file on your drives, every single file on any USB drives attached. Even network drives get wiped.
@leo_craft1
@leo_craft1 4 ай бұрын
Just rm "-f"
@surplus2720
@surplus2720 Жыл бұрын
My braaaaaaaaaaaaaaain is in buffer overflow help me plis
@EmoonX
@EmoonX 2 жыл бұрын
"[~user/]$ rm -rf / rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe" At least they're nice about offering a second chance.
@joaomachado9105
@joaomachado9105 2 жыл бұрын
amazing
@mutafyanny
@mutafyanny 4 ай бұрын
what os was that
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
Somebody emailed me a trojan virus
14:06
Bog
Рет қаралды 1,2 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
When a friend recommends you Vim...
2:38
Virbox
Рет қаралды 97 М.
Scammers REGRET Challenging An FBI Agent!
21:02
Scambaiter
Рет қаралды 2,4 МЛН
The Linux Tier List
27:34
Chris Titus Tech
Рет қаралды 1,2 МЛН
I Made Sorting Algorithms Race Each Other
8:24
Green Code
Рет қаралды 242 М.
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 1 МЛН
I Hacked a Discord Bot, the Owner said this...
9:09
No Text To Speech
Рет қаралды 1,5 МЛН
cursed programming 3
3:17
Cement Sandwich
Рет қаралды 302 М.
Typical installation of Ubuntu vs Arch vs Gentoo Linux...
3:35
How programmers flex on each other
6:20
Fireship
Рет қаралды 2,5 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН