next up previous contents
Next: Removing a directory (rmdir, Up: Files and the File Previous: Removing files (rm)   Contents

Creating a directory (mkdir)

As we said earlier, there are specific commands for directories. The first command is how to make a directory. The command for doing this is mkdir. The parent directory, for the directory created, is your current directory. The format for mkdir is:

mkdir directory_name

You can use this to create a directory somewhere other than your current working directory by simply specifying the pathname, e.g.

malama% pwd
/home/bbaggins/programs
malama% mkdir ~/bin/convex



h.stilmack@jach.hawaii.edu