mkdir linux code example
Example 1: mkdir - p linux
The -p flag will create nested directories, but only if they dont exist already.
For example, suppose you have a directory /foo that you have write permissions for.
mkdir -p /foo/bar/baz
It is also an idempotent operation, because if you run the same command over again, you will not get an error, but nothing will be created.
Example 2: linux create directory with permissions
mkdir –m777 DirM
Example 3: mkdir command
mkdir <name>
md <name>
Example 4: linux verzeichnis erstellen
mkdir Verzeichnisname