|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
User Commands mkdir(1)
NAME
mkdir - make directories
SYNOPSIS
mkdir [-m mode] [-p] dir...
DESCRIPTION
The mkdir command creates the named directories in mode 777
(possibly altered by the file mode creation mask umask(1)).
Standard entries in a directory (for instance, the files
".", for the directory itself, and "..", for its parent) are
made automatically. mkdir cannot create these entries by
name. Creation of a directory requires write permission in
the parent directory.
The owner-ID and group-ID of the new directories are set to
the process's effective user-ID and group-ID, respectively.
mkdir calls the mkdir(2) system call.
setgid and mkdir
To change the setgid bit on a newly created directory, you
must use chmod g+s or chmod g-s after executing mkdir.
The setgid bit setting is inherited from the parent direc-
tory.
OPTIONS
The following options are supported:
-m mode This option allows users to specify the mode
to be used for new directories. Choices for
modes can be found in chmod(1).
-p With this option, mkdir creates dir by
creating all the non-existing parent direc-
tories first. The mode given to intermediate
directories will be the difference between
777 and the bits set in the file mode crea-
tion mask. The difference, however, must be
at least 300 (write and execute permission
for the user).
OPERANDS
The following operand is supported:
SunOS 5.10 Last change: 1 Feb 1995 1
User Commands mkdir(1)
dir A path name of a directory to be created.
USAGE
See largefile(5) for the description of the behavior of
mkdir when encountering files greater than or equal to 2
Gbyte ( 2**31 bytes).
EXAMPLES
Example 1: Using mkdir
The following example:
example% mkdir -p ltr/jd/jan
creates the subdirectory structure ltr/jd/jan.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment
variables that affect the execution of mkdir: LANG, LC_ALL,
LC_CTYPE, LC_MESSAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 All the specified directories were created success-
fully or the -p option was specified and all the
specified directories now exist.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
| CSI | enabled |
|_____________________________|_____________________________|
| Interface Stability | Standard |
|_____________________________|_____________________________|
SunOS 5.10 Last change: 1 Feb 1995 2
User Commands mkdir(1)
SEE ALSO
rm(1), sh(1), umask(1), intro(2), mkdir(2), attributes(5),
environ(5), largefile(5), standards(5)
SunOS 5.10 Last change: 1 Feb 1995 3
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 11:25:05 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
CPAN man page (4329 hits) (Suse Linux 10.1)
ssh man page (4183 hits) (Suse Linux 10.1)
adv_cap_autoneg man page (4089 hits) (Solaris 10 11_06)
sqlite3 man page (4012 hits) (openSUSE 10.2)
svn man page (3236 hits) (FreeBSD 6.2)
startproc man page (1903 hits) (Suse Linux 10.1)
pprosetup man page (1664 hits) (Solaris 10 11_06)
netcat man page (1603 hits) (Suse Linux 10.1)
signal man page (1592 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (1549 hits) (Solaris 10 11_06)
|