9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

mkdir.1 (716B)


      1 .TH MKDIR 1
      2 .SH NAME
      3 mkdir \- make a directory
      4 .SH SYNOPSIS
      5 .B mkdir
      6 [
      7 .B -p
      8 ] [
      9 .B -m
     10 . I mode
     11 ]
     12 .I dirname ...
     13 .SH DESCRIPTION
     14 .I Mkdir
     15 creates the specified directories.
     16 It
     17 requires write permission in the parent directory.
     18 .PP
     19 If the
     20 .B -p
     21 flag is given,
     22 .I mkdir
     23 creates any necessary parent directories
     24 and does not complain if the target directory already exists.
     25 .PP
     26 The
     27 .B -m
     28 flag sets the permissions to be used when creating the directory.
     29 The default is 0777.
     30 .SH "SEE ALSO"
     31 .IR rm (1)
     32 .br
     33 .IR cd
     34 in
     35 .IR rc (1)
     36 .SH SOURCE
     37 .B \*9/src/cmd/mkdir.c
     38 .SH DIAGNOSTICS
     39 .I Mkdir
     40 returns null exit status if all directories were successfully made.
     41 Otherwise it prints a diagnostic and returns
     42 .B \&"error"
     43 status.