Skip to content

mkdir

Create a directory.

mkdir(dirname)
mkdir(parentdir, dirname)
[status, message, messageid] = mkdir(...)

Creates a directory. With one argument, creates dirname in the current working directory; with two, creates dirname inside parentdir. Intermediate directories are created automatically as needed.

mkdir('output')
mkdir('runs', '2026-04-28')
  • rmdir — Remove a directory.
  • cd — Change the current working directory.
  • dir — List files in a directory.