Mkdir
From Wikipedia, the free encyclopedia
- The correct title of this article is mkdir. The initial letter is shown capitalized due to technical restrictions.
The mkdir command in the Unix operating system 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.
The command is similar to the DOS mkdir (often abbreviated to md) command.
[edit] 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.
[edit] See also
- Find - The find command coupled with mkdir can be used to only recreate a directory structure (without files).
- List of Unix programs
[edit] External links
Unix command line programs (more) | |||
File and file system management: | cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | more | mount | mv | pwd | rm | rmdir | split | touch | tree | ||
Process management: | anacron | at | chroot | crontab | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | screen | time | timex | top | wait | ||
User Management/Environment: | env | finger | id | locale | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
Text processing: | awk | cut | diff | ex | head | iconv | join | less | more | nkf | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
Shell programming: | echo | expr | printf | unset | Printing: | lp |
Communications: inetd | netstat | ping | rlogin | traceroute |
Searching: find | grep | strings |
Miscellaneous: banner | bc | cal | man | size | yes |