Files
bare-operating-system/packages/bare-os-coreutils/man/pages/mkdir.json
T
2026-04-03 22:34:08 -04:00

18 lines
870 B
JSON

{
"name": "mkdir",
"section": 1,
"title": "make directories",
"synopsis": ["mkdir [OPTION]... DIRECTORY..."],
"description": "Creates directories using the VFS marker convention. **`-m MODE`** sets permission bits (octal) on **`.bareos_empty`**; **`lstat`** on the directory reports **`S_IFDIR`** with those bits (execute bits are implied for user/group/other when the corresponding read bit is set, so traversal still works).",
"options": [
{ "flag": "-p, --parents", "meaning": "Create parent directories as needed." },
{ "flag": "-m MODE", "meaning": "Directory mode (octal, e.g. **755** or **0755**)." }
],
"keywords": ["mkdir", "bare-os", "coreutils"],
"examples": [
{ "caption": "one dir", "code": "mkdir proj" },
{ "caption": "parents", "code": "mkdir -p a/b/c" },
{ "caption": "mode", "code": "mkdir -m 700 private" }
]
}