Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdir(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                 mkdir(1)



        _________________________________________________________________
        mkdir                                                     Command
        make a directory
        _________________________________________________________________


        SYNTAX

        mkdir [ -p ] [ -m mode ] dirname ...


        DESCRIPTION

        Mkdir creates specified directories in mode 777 (possibly altered
        by umask(1)).  Standard entries ( . for the directory itself, and
        .. for its parent) are made automatically.

        Mkdir requires write permission in the parent directory.

        With the -p option, mkdir also creates any non-existing parent
        directories of the new directory.  The -m option lets you specify
        the new directories' mode.  For values of mode, see chmod(1).


        _________________________________________________________________
        EXAMPLES

        $ pwd

        /usr/user1
        $ mkdir cprograms
        $ cd cprograms
        $ pwd

        /usr/user1/c_programs
        $

        In the above example, user1 has created a directory called
        "c_programs."
        _________________________________________________________________


        SEE ALSO

        sh(1), rm(1), umask(1).


        DIAGNOSTICS

        Mkdir returns exit code 0 if all directories were successfully
        made; otherwise, it prints a diagnostic and returns non-zero.  An



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                 mkdir(1)



        error code is stored in errno.





















































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026