The mkdir command creates a new directory for each named directory argument.
creates intermediate directory components that don't already exist. For example, if one of the directory arguments is dir/subdir/subsub and subdir doesn't already exist, mkdir creates it. Directories are created with the mode u+wx, which means read, write and search permissions for the owner.
Possible exit status values are:
Failure due to any of the following:
- Path not found
means that the preceding structure (parent directory) of the named directory does not exist.
- Access denied
means that the requested directory already exists or is otherwise inaccessible.
- Cannot create directory
means that some other error occurred during creation of the directory.
mkdir is provided as both an external utility and a built-in MKS KornShell utility.
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems. Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.
A command of the same name is supplied with Windows. We provide this MKS Toolkit command as an alternative because it accepts multiple names and UNIX-style file names.
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.5 Documentation Build 3.