Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Create a sequence of directories.
amkdir [-g group] [-p permissions] [-s] [-v] [directory]
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.
It is not an error for the directory pathname to be omitted.
Status return values
0
: success
1
: initialization error
2
: directory creation error
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.
The unix manual page for chgrp(1).
The unix manual page for chmod(1).
The unix manual page for mkdir(1).
Original: 1994/02/08 by Mark Calabretta, ATNF