Erasing Your Hard Drive
Hey guys, this is my Kids 101. Today, I'm going to be showing you a simple command that it's a very dangerous command. I wouldn't recommend doing it.
What is it? What it does is it erases your hard drive. Now I'm going to show you how to do this and talk about it a little.
Now, this command, if you are, you're gonna have to type sudo in front of it because it needs root to do it or an administrator. So, if I type it without sudo rm space -rf space /
, it's going to say illegal option and, um, it's not going to work because what you need, you have to be either logged in as root, and if you log in as root, you want to type sudo, or um, or type sudo so it does run the command as root.
Then, it'll ask for an administrator password. If I type sudo space rm space -rf space /
, it'll say, "Improper use of sudo command could lead to data loss or the deletion of important system files. Please double-check your typing on using sudo. Type man sudo for more information."
Basically, that's just a warning that you could erase parts of important files if you use sudo because, um, nothing is restricted to sudo, which you know, because this would erase your hard drive.
Now, if you do this in single user mode, you won't have to type sudo. By the way, single user mode is when there is no GUI; you're just logged in as with logged in to the UNIX part.
So, um, you have to hold the power button and then turn it on by holding at Apple S. So you won't have to type sudo, but you will have to type mount space -euw space /
because, um, it will need to edit the file system. That's the command to edit the file system.
Now here, I can either type any administrator password or I can press Ctrl C to abort. So, I'm not going to do this; I'm just going to press Control C and then it goes to a regular terminal. Types on the regular terminal stuff, and I can just quit that and I'll be fine.
So that was just a simple video about erasing your hard drive. I would not recommend it, and if you do it, don't blame us.
Um, yeah, I hope this helped. I just gave this information to you because you might be interested in it, and um, there you go. If you enjoy our content, please subscribe to the Mac Heads 101. Thank you for watching. Have a nice day!