file1 file2install [
files directoryinstall -d [
Used primarily in Makefiles to update files. install copies files into user-specified directories. Similar to cp, with additional functionality regarding inode-based information like UID, GID, mode, flags, etc.
Create backup copies of existing target files by renaming existing
.old. See -B for specifying extension name (i.e., default is .old).
suffix as a filename extension when -b is in effect.
Copy the specified file(s). This is the default behavior of the install command.
Copy the file. Don't change the modification timestamp if the target exists and is the same as the source.
Create any missing directories.
Set the file flags of the target file(s). Flags are a comma-separated list of keywords. See the chflags(1) manpage for further details.
Set GID of target file to
group (privileged users only or user is member of specified group).
Set the mode of the target files to
mode. The default is 0755, or rwxr-xr-x.
Don't use mmap(2).
Set ownership to
username or, if unspecified, to root (privileged users only).
Preserve modification times.
Strip binaries to enhance portability.
Safe copy. The source file is copied to a temporary file and then renamed. The default behavior is to first unlink the existing target before the source is copied.