terminal.cab

All commands

mkdir

Topic: Files and folders

Program: mkdir

Makes directories.

Package: core-nav

Usage

mkdir [OPTION]... DIRECTORY...

Description

Make each DIRECTORY, if it does not exist yet.

Options in the simulator

4 more options of the real program, not in the simulator yet
  • -m, --mode needs a value not in the simulator yet

    Explanation to come

  • -Z not in the simulator yet

    Explanation to come

  • --context value optional not in the simulator yet

    Explanation to come

  • --version not in the simulator yet

    On a real system it prints the version of the program.

Examples

From the lesson Creating folders and files
mkdir music
ls
Documents  Downloads  Pictures  music  notes.txt  projects

Try it in the terminal

From the lesson Creating folders and files
mkdir -p projects/app/src
ls projects/app
src

Try it in the terminal

From the lesson Getting help
mkdir --help
Usage: mkdir [OPTION]... DIRECTORY...

Make each DIRECTORY, if it does not exist yet.

  -p, --parents  also make missing parent directories; no error if DIRECTORY exists
  -v, --verbose  print a line for every directory made
      --help     show this help and exit

Try it in the terminal

From the lesson Create, copy, move
mkdir -p staging/src/tests
ls -R staging
staging:
src

staging/src:
tests

staging/src/tests:

Try it in the terminal

From the command of the day: mkdir -p
mkdir -p projects/site/css
ls projects/site
css

Try it in the terminal

Where you learn it

Lessons

Command of the day

All commands