cmdxray / commands / mkdir

What does mkdir do?

create directories.

▸ Explain your own mkdir command →

mkdir examples, explained

$ mkdir -p a/b/c

  • mkdircreate directories
  • -pcreate parent directories as needed, no error if they exist
  • a/b/can argument passed to the command

$ mkdir -m 755 dir

  • mkdircreate directories
  • -mset the permission mode of the new directory
  • 755an argument passed to the command
  • diran argument passed to the command

mkdir flags & options

-pcreate parent directories as needed, no error if they exist
-vprint a message for each created directory
-mset the permission mode of the new directory

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.