Now, sometimes you need root permission.
You don't wanna have root permission in general,
because it's a little bit dangerous, it's not safe.
If you do something in root, it's done.
If I accidentally delete a file and
it's some critical file, if you're not root it won't let you.
But if you're root, it will let you.
So root is dangerous to be in all the time.
But, there are certain cases where you need root permission,
say to install a program.
A lot of times installing programs you need to be root, because installing
a program requires putting files in all kinds of directories, and certain
directories are only accessible by root, and maybe you need to modify a registry,
I'm talking Windows, you need to modify some file that only root has access to.
So maybe installing programs a lot of time,
you need to be rude, not always, but sometimes.
Change in the operating systems, so
if you wanna modify the operating system, update the operating system,
installs drivers into the operating system, you often need to be root.
So there are a set of things that you need to do with root.
The way you generally do that is you use a command called Sudo, S-U-D-O.
SU is short for Switch User, that's a command, switch user DO.
So you prefix your command with Sudo.
So, let's say I wanna do LS, I wanna get a directory.
I type LS and that's fine, right?
But if I want to get it directly that only root has permission to look at,
I wanna look at that directory.
I can't just type ls, I have to type sudo ls, sudo ls and
it will do the ls command as if I were root.
So it just applies root permission to a single command which is a safer way
to do it.
You don't wanna generally become root unless you really know what you're doing.
Thank you.
[MUSIC]