++ed by:

2 PAUSE users
3 non-PAUSE users.

Casey West


mkdir -- create directories


mkdir [-p] [-m mode] directory [directories ...]


mkdir creates directories, giving it permission 0777, as modified by the current umask. Directories created in the order they are given.


mkdir accepts the options described below.


Create any required intermediate directories. Such directories will be created with permission 0777, as modified by the current umask. In addition, the write and execute bits for the owner of the directory will be set. If the -p option is given, existing directories will not trigger an error.

-m mode

Create the directory with permissions as indicated by mode. mode can be of any form accepted by chmod(1). Symbolic modes are relative to an initial mode of a=rwx.


The working of mkdir is not influenced by any environment variables.


mkdir does not have any known bugs.


This implementation of mkdir is compatible with the OpenBSD implementation, and is expected to be compatible with the IEEE Std1003.2 aka POSIX.2 implementation.


    $Log: mkdir,v $
    Revision 1.2  2004/08/05 14:17:43  cwest
    cleanup, new version number on website

    Revision 1.1  2004/07/23 20:10:12  cwest
    initial import

    Revision 1.3  1999/03/09 02:53:25  abigail
    Removed the comparison of $dir to '.' and '/', as that's non-portable.
    All we need to do is checking for a fixed point.

    Revision 1.2  1999/03/09 02:44:57  abigail
    Fixed SybolicMode -> SymbolicMode typo.

    Revision 1.1  1999/03/09 02:27:17  abigail
    Initial revision


The Perl implementation of mkdir was written by Abigail, abigail@fnx.com.


This program is copyright by Abigail 1999.

This program is free and open software. You may use, copy, modify, distribute, and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 190:

You forgot a '=back' before '=head1'