install
时间:2006-08-13 来源:anima
install
install [options] [source] destination
System administration command. Used primarily in Makefiles to update files. install copies files into user-specified directories. Similar to cp, but attempts to set permission modes, owner, and group. The source may be a file or directory, or a list of files and directories. The destination should be a single file or directory.
Options
-b, --backup[=control]Back up any existing files. When using the long version of the command, the optional control parameter controls the kind of backup. When no control is specified, install will attempt to read the control value from the VERSION_CONTROL environment variable. Accepted values are:
none, offNever make backups.
numbered, tMake numbered backups.
existing, nilMatch existing backups, numbered or simple.
simple, neverAlways make simple backups.
-d, --directoryCreate any missing directories.
-g group, --group groupSet group ID of new file to group (privileged users only).
--helpPrint help message, then exit.
-m mode, --mode modeSet permissions of new file to mode (octal or symbolic). By default, the mode is 0755.
-o [owner] , --owner[=owner]Set ownership to owner or, if unspecified, to root (privileged users only).
-p, --preserve-timestampsPreserve access and modification times on source files and directories.
-s, --stripStrip symbol tables.
-v, --verbosePrint name of each directory as it is created.
--versionPrint version, then exit.
-CDo not overwrite file when the target exists and is identical to the new file. Preserve original timestamp.
-DCreate leading components of destination except the last, then copy source to destination.
-S suffix, --suffix=suffixUse suffix instead of the default backup suffix, usually ~.