mkdir Command Generator
Generate mkdir commands to create directories
Getting Started with mkdir
## What is mkdir?
The `mkdir` command creates directories. If any parent directory in the path does not exist, `mkdir` will fail unless you use the `-p` flag.
## How to Use
1. **Set Options** (optional): Add `-p` to create parent directories as needed. 2. **Specify Directory**: Enter the directory path to create. 3. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `-p` Parents Create parent directories as needed. No error if the directory already exists.
### `-v` Verbose Print a message for each directory created. Useful for scripts and debugging.
▶How do I create nested directories at once?
Use `mkdir -p a/b/c`. Without `-p`, `mkdir` would fail if `a` or `a/b` does not yet exist.
▶How do I set permissions when creating a directory?
Use `mkdir -m 700 mydir` to set the mode directly. This generator does not include `-m`; add it manually if needed.
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee