wikipedia:mkdir command to create directories.
-p, --parents
Examples
mkdir -p /path/to/your/new/dir
mkdir ~/.ssh
mkdir -p "$(dirname "$1")" && touch "$1"
mkdir -p /path/to/your/new/dir
mkdir: cannot create directory ‘/path’: Read-only file system
Options
-p, --parents makes parents directories if needed
Related commands
See also
- file, File system, directory,
touch
, mkdir
, ls
, ln
truncate
, fallocate
, split
, stat
, inode, File descriptor, superblock, block size (blockdev
), fuser
, lsof
, scrub
, chattr
, ulimit (nofiles), cp
, mv
, file (command)
, mkfifo
, chmod
md
(Windows)