install: Copy files and set attributes
install copies files while setting their permission modes and, if
possible, their owner and group. Synopses:
install [option]... source dest install [option]... source... directory install -d [option]... directory...
In the first of these, the source file is copied to the dest target file. In the second, each of the source files are copied to the destination directory. In the last, each directory (and any missing parent directories) is created.
install is similar to
cp, but allows you to control the
attributes of destination files. It is typically used in Makefiles to
copy programs into their destination directories. It refuses to copy
files onto themselves.
The program accepts the following options. Also see section Common options.
install, which gives directories that it creates the default attributes.)
chmod, with 0 as the point of departure (see section File permissions). The default mode is 0755--read, write, and execute for the owner, and read and execute for group and other.
installhas appropriate privileges (is run as root), set the ownership of installed files or directories to owner. The default is
root. owner may be either a user name or a numeric user ID.
Go to the first, previous, next, last section, table of contents.