INSTALL(1) — UNIX Programmer’s Manual
NAME
install − install binaries
SYNOPSIS
install [ −c ] [ −m mode ] [ −o owner ] [ −g group ] [ −s ] binary [binary...] destination
DESCRIPTION
Binary is moved (or copied if −c is specified) to destination. If destination already exists, it is removed before binary is moved. If the destination is a directory then one or more binary files are moved into the destination directory with their original file-names. Note that install does not interpret arguments the same as mv(1) or cp(1). For example, if x is a directory containing the file y, and z is a directory at the same level as x, then the command line "mv x/y z" moves the file y into the directory z (i.e., the new full pathname of the file will be z/y). However, the command line "install x/y z" installs both the subdirectory x and the file y into the directory z (i.e., the new full pathname of the file will be z/x/y).
The mode for Destination is set to 755; the −m mode option may be used to specify a different mode.
Destination is changed to owner root; the −o owner option may be used to specify a different owner.
Destination is changed to group root; the −g group option may be used to specify a different group.
If the −s option is specified the binary is stripped after being installed.
Install refuses to move a file onto itself.
Install adds no privileges; that is, it cannot change owners or groups of files that the user is not permitted to access or become, nor write files into directories for which the user has no write permission.
SEE ALSO
chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)
4BSD