• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Using Basic Unix Commands > Creating a New Directory

Creating a New Directory

UNIX lets you do more than just search for files, folders, and applications; it lets you create directories which you can then move files and folders into. Actually, the process is simple and can be incorporated with other commands. You could instruct UNIX to create a new directory, using the mkdir command, and then move or copy some files or folders into the directory. In addition, you can save UNIX commands and execute them over and over again. That's the real power of UNIX; the ability to create a complex command, save it, and then use it over again.

Create a New Directory

Open the Applications folder, double-click the Utilities folder, and then double-click the Terminal icon.

Type mkdir 'directoryname'

In our example, UNIX makes a directory named productions.

By entering single quotes around the directory name, you avoid having to use the forward slash to identify blank spaces between words.

Press Return.

UNIX creates a new directory in the current working directory. The mkdir command creates a directory in whatever directory is active.

To see the new directory, type ls, and then press Return.

Click the Close button.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint