Copied to clipboard

mkdir

The mkdir command can create a new directory

Example

  • Create a directory named mydir:
    mkdir mydir
    
  • Create a directory named yourdir and set the directory permissions to 755:
    mkdir -m 755 yourdir
    
  • Recursively create a directory named mydir/yourdir:
    mkdir -p mydir/yourdir