The mkdir command in the Unix, DOS and Microsoft Windows operating systems is used to make a new directory. Normal usage is as straightforward as follows:
mkdir name_of_directory
Where name_of_directory is the name of the directory one wants to create. When typed as above (ie. normal usage), the new directory would be created within the current directory. In DOS and Windows operating systems the command is often abbreviated to md (see: md or mkdir).
History
In early versions of Unix (4.1BSD, early versions of System V) this command had to be setuid root as the kernel didn't have a mkdir() syscall. Instead it made the directory with mknod() and linked in the . and .. directory entries manually.
See also
- Find - The find command coupled with mkdir can be used to only recreate a directory structure (without files).
- List of Unix programs
- List of DOS commands
External links
|
|
|
|---|---|
| File and file system management | alias · cat · chattr · cd · chmod · chown · chgrp · cksum · cmp · cp · du · df · file · fsck · fuser · ln · ls · lsattr · lsof · mkdir · mount · mv · pwd · rm · rmdir · split · touch |
| Process management | at · chroot · crontab · exit · kill · killall · nice · pgrep · pidof · pkill · ps · pstree · sleep · time · top · wait · watch |
| User management/environment | env · finger · id · logname · mesg · passwd · su · sudo · uname · uptime · w · wall · who · whoami · write |
| Text processing | awk · comm · cut · ed · ex · fmt · head · iconv · join · less · more · paste · sed · sort · tac · tail · tr · uniq · wc · xargs |
| Shell programming | basename · echo · expr · false · printf · test · true · unset |
| Printing: lp · Communications: inetd · netstat · ping · rlogin · nc · traceroute · Searching: find · grep · strings · Miscellaneous: banner · bc · cal · dd · man · size · yes | |
|
|
|
|---|---|
| Basic file and file system management | attrib · cd · chdir · copy · del · dir · erase · format · md · mkdir · move · rd · rename · ren · rmdir · type · xcopy |
| Advanced file and file system management | assoc · cacls · chkdsk · chkntfs · comp · compact · convert · diskcomp · diskcopy · fc · ftype · label · recover · regsvr32 · replace · subst · tree · verify · vol |
| Process management | at · exit · start · taskkill · tasklist · tlist · kill |
| User management/environment | chcp · color · date · graftabl · mode · path · popd · pushd · set · time · title · ver |
| Shell programming | break · call · cmd · cscript · doskey · echo · endlocal · exit · for · goto · if · pause · powershell · prompt · rem · setlocal · shift |
| Printing: print · Communications: ipconfig · net · netsh · netstat · ping · tracert · Text processing: edit · more · sort · Searching: find · findstr · Miscellaneous: cls · help | |


