mk90.commands

Command mkdir

Create one directory on a mounted writable MKS2 volume.

Synopsis

mkdir path

Ordinary invocation: foreground child, PID 3; the shell waits. Not an allowed pipe producer.

Parameters

ParameterMeaning
pathNew directory path; its parent must already exist.

Description

Allocates one of the volume’s 16 shared file/directory inodes and records its parent. Directories use metadata only, without a data extent. A successful commit makes the new name visible.

Examples

mkdir /mnt/smp1/work
mkdir /mnt/smp1/work/src

Limits and side effects

  • No -p, recursive creation or permission argument. Virtual directories and the boot ROM cannot be extended. An existing target is an error.

Status and diagnostics

Success is status 0. Relevant status codes: 3, 4, 5, 7, 8, 9, 11, 14, 15, 18. See the diagnostic reference.

See also

rmdir · ls · cd · Shell syntax