Mkdir

From DssWiki

Jump to: navigation, search

{{DISPLAYTITLE:{{#if:|:|}}mkdir}}

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

<noinclude>
Personal tools
efta 468 03-27-08 JOIN OUR TEAM!!