install - install files and directories
install [-CcDp] [-g group] [-m mode] [-o owner] file1 file2
install [-CcDp] [-g group] [-m mode] [-o owner] file ... directory
install -d [-g group] [-m mode] [-o owner] directory ...
install moves (or copies if -C or -c are specified) files to the target path specified by file2 or directory. Alternatively, if -d is specified, install creates directories (also creating missing parent directories as necessary, similar to mkdir -p).
install accepts these options:
u=rwx,g=rx,o=rx
) as opposed to relative symbolic permissions (e.g.
ugo+x
).No environment variables affect the execution of install.
The combination of creation of and setting permissions for files and directories is not atomic, so there are lots of possibilities for race conditions. If you are really concerned about this, use a umask of 77.
$Log: install.gbacon.html,v $
Revision 1.3 2004/08/05 14:19:18 cwest
cleanup, new version number on website
Revision 1.1 2004/07/23 20:10:07 cwest
initial import
Revision 1.14 1999/07/29 18:36:38 gbacon
remove C<use Data::Dumper>
Revision 1.13 1999/07/29 18:35:34 gbacon
make -p imply -C as documented
Revision 1.12 1999/07/29 15:41:18 gbacon
must printf to use %o (in modify_file)!
Revision 1.11 1999/07/29 15:36:20 gbacon
beef up the docs!
Revision 1.1 1999/07/27 15:49:47 gbacon
added parens to File::Copy::{copy,move} calls
fixed $opt{D} versus $Debug botch :-(
Revision 1.0 1999/07/27 15:36:55 gbacon
Initial revision
AUTHOR
The Perl implementation of install was written by Greg Bacon <gbacon@itsc.uah.edu> as part of the ADaM Project.
COPYRIGHT and LICENSE
Copyright 1999 UAH Information Technology and Systems Center.
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.
SEE ALSO
umask(2), chmod(1), mkdir(1), chown(8), chgrp(8), strip(1)