MKDIR(1plan9)
π MKDIR β the 1plan9 manual, but make it a group chat π
okay bestie, sit down, hydrate, and let me tell you about the absolute icon that is mkdir from the 1plan9 manual section. yes she's that girl. no cap.
β¨ NAME β¨
mkdir β make a directory. that's it. that's the whole vibe. she makes directories. π
πΈ SYNOPSIS πΈ
mkdir [ -p ] [ -m mode ] dirname ...
like. look at her. minimal. clean. main character energy fr fr. β¨
π¦ DESCRIPTION π¦
so mkdir creates the specified directories. that's the whole job. and bestie, to do that she requires write permission in the parent directory. so if the parent folder is locked down and not letting anyone in? she cannot cook. permission check first, always. π«Ά
now, if you hand her the -p flag, she gets β¨responsibleβ¨. she'll create any necessary parent directories for you β like she's building the whole staircase, not just the one step β and she does not complain if the target directory already exists. no drama. no error. just vibes. honestly iconic.
and then there's the -m flag, which sets the permissions to be used when creating the directory. you tell her the mode, she uses the mode. and if you don't say anything? the default is 0777. periodt.
π SEE ALSO π
π SOURCE π
the source lives at /src/cmd/mkdir.c in case you wanna read her diary (the source code). go look, she's cute. π
π DIAGNOSTICS π
here's the vibe check:
- if all directories were successfully made,
mkdirreturns null exit status. slay. clean exit. π - otherwise? she prints a diagnostic and returns "error" status. she will tell you. she is not quiet about it. π
lowkey important: exit status matters if you're scripting this, so don't ignore the error status bestie, she's telling you something π₯
and that's the whole page!! this lil beauty comes from the 1plan9 manual β the MKDIR(1plan9) page, header and footer and all πβ¨ thanks for reading, go make some directories, mwah ππ
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms