Home > Linux Commands > Linux / Unix mkdir command

Linux / Unix mkdir command

January 20th, 2009

 

Source : http://www.computerhope.com/unix/umkdir.htm

 

About mkdir

Short for make directory this command is used to create a new directory.

Syntax

mkdir dirname

dirname
The name of the directory that you wish to create.

Examples

mkdir mydir – This would create a new directory called mydir.

 

 

Source : http://www.ss64.com/bash/mkdir.html 

 

mkdir

Create new folder(s), if they do not already exist.

SYNTAX
      mkdir [Options] folder...

      mkdir "Name with spaces"

OPTIONS
  -m, --mode=MODE   set permission mode (as in chmod), not rwxrwxrwx - umask
  -p, --parents     no error if existing, make parent directories as needed
      --verbose     print a message for each created directory

 

mkdir creates the standard entries . (dot) for the current folder

and .. (dot dot) for its parent

Any folder name that includes spaces may appear in some applications

as "Name%20with%20spaces"

Linux Commands

Comments are closed.