Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: dox Up: General Previous: affirm

Subsections



amkdir

Create a sequence of directories.

Synopsis

amkdir [-g group] [-p permissions] [-s] [-v] [directory]

Description

amkdir creates directories giving them the specified group ownership and permissions. It will create all directories in the pathname which do not already exist. The pathname may be absolute or relative.

Options

-g group
Group ownership to be applied to newly created directories via chgrp.

-p permissions
Directory permissions to be applied to newly created directories via chmod. Numeric or symbolic forms are acceptable.

-s
Strip off the last component of the pathname.

-v
Verbose mode.

It is not an error for the directory pathname to be omitted.

Diagnostics

Status return values
0: success
1: initialization error
2: directory creation error

Examples

Create the dir1 and dir1/dir2 subdirectories under /tmp:

   amkdir -g staff -p ug=rwx,o=rx,g+s -s -v /tmp/dir1/dir2/file

The -s option here strips off the last component of the pathname which is file. This is often useful in shell scripts and makefile rules.

See also

The unix manual page for chgrp(1).
The unix manual page for chmod(1).
The unix manual page for mkdir(1).

Author

Original: 1994/02/08 by Mark Calabretta, ATNF


next up previous contents index
Next: dox Up: General Previous: affirm   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15