Name
install
Synopsis
install [options]file1 file2install [options]files directoryinstall -d [options] [file]directory
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.
Options
-
-b Create backup copies of existing target files by renaming existing
fileasfile.old. See-Bfor specifying extension name (i.e., default is.old).-
-Bsuffix Use
suffixas a filename extension when-bis in effect.-
-c Copy the specified file(s). This is the default behavior of the
installcommand.-
-C Copy the file. Don’t change the modification timestamp if the target exists and is the same as the source.
-
-d Create any missing directories.
-
-fflags 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.-
-ggidorgroupname Set GID of target file to
group(privileged users only or user is member of specified group).-
-mmode Set the mode of the target files to
mode. The default is0755, orrwxr-xr-x.-
-M Don’t use
mmap(2).-
-ouidorusername Set ownership to
uidorusernameor, if unspecified, to root (privileged users only).-
-p Preserve modification times.
-
-s Strip binaries to enhance portability.
-
-S Safe copy. The source file is copied to temporary file and then renamed. The default behavior is to first unlink the existing target before the source is copied.
-
-v Verbose. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access