So I have started my parrot operating system and I have successfully opened up a terminal as well,
as you can see over here.
Now over here, I'm going to simply type LS and you can see there are a lot of files and folders made
into this drive.
Now let's see, what is this actually?
So let me clear the screen for you and let me simply type PWT.
So pWt tells us the present working directory and you can see over here that slash root is the present
working directory on all the files and folders that have been created are inside the root user's home
directory, which is slash root.
So I hope you guys understood this.
If I make this as a tree command, you can see there are in total 627 directories in my computer and
3274 files that have been created by the root user in his root directory.
Now, one thing that you should understand is that other users in this operating system cannot make
files in the root directory.
For example, let me switch the user to Udemy so you can see it says the user does not exist, no problem.
So let's quickly create a user or less.
Jeremy That is also create a password for that user.
Now let me switch the user quickly and you can see the files are here.
So let me see if the user can create a file over here.
So let's say we call the file as YouTube file or txt and this is a file and you can see it says permission
denied, which basically means that any other user cannot create files in the root user's home directory
until and unless they have been given specific set of permissions.
So by default they cannot make files or this directory is not writable.
Yes, they can read it and yeah, they have the right permissions over here.
So I hope you guys understood what is a root directory and how users cannot create files into this home
directory apart from the root user.
Thank you.