Working with directories
Upon opening a shell we will enter the command pwd – print working directory to see the current directory we are in.

We are currently in our home directory. We can create an empty file on the server with that we will call “file1” with…

We can check to see if it was created by entered ls -l

Now lets change directories to the root, with the cd / command and create another file that we will call “file2”

You’ll see a “permission denied” message. Ordinary users can create files only in directories where they have the permissions needed for this.
We now enter cd to return to our home directory, and this time we will can create a directory and give it the name files using mkdir files in the current directory.

We can remove files just as easily with rmdir command and it only works if the directory is empty. So, we enter rmdir files and ls -l to list the files for verification.

We see that the “files” directory no longer appears.
