How to Create a Directory in Linux: Commands, Options, and Use Cases
Creating directories in Linux is one of the most fundamental filesystem operations — and while the basic command takes seconds to learn, there's a surprising amount of depth in how directories work, what options are available, and how your specific environment shapes the right approach.
The Core Command: mkdir
The primary tool for creating directories in Linux is mkdir (short for make directory). The basic syntax is: