The mkdir Command

As mentioned earlier, directories are basically used to organize data. You may have experienced instances where you have one directory with hundreds of files. It would not be easy to find anything quickly unless you memorize every filename on your system.

Think of a phone book or telephone directory: The Unix directory is much the same. What if all businesses in your area were only listed in alphabetical order? How does that help you? How could you call an electrician, plumber, or anyone else unless you had groups of similar categories organized for quick retrieval? This is exactly why you need directories—for the simple organization of data on your Unix system. In this part of the lesson, we will learn to make directories. ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.