Creating Files and Directories

To create an empty file, move to your login directory and use the touch command at the shell prompt. To try it, type:


Now, in your login directory, you have got an empty file called

Let's also create a new directory, using the mkdir command.

Move to your login directory and type:

mkdir tigger

Now, you have created a directory called tigger in your login directory. Your new directory's absolute pathname is /home/yourlogin/tigger, and your home directory is the parent of tigger.