Linux "install" Command Line Options and Examples
copy files and set attributes

This install program copies files (often just compiled) into destination locations you choose. If you want to download and install a ready-to-use package on a GNU/Linux system, you should instead be using a package manager like yum(1) or apt-get(1).


Usage:

install [OPTION]... [-T] SOURCE DEST
    install [OPTION]... SOURCE... DIRECTORY
    install [OPTION]... -t DIRECTORY SOURCE...
    install [OPTION]... -d DIRECTORY...




Command Line Options:

--backup[
make a backup of each existing destination file
install --backup[ ...
-b
like --backup but does not accept an argument
install -b ...
-C
compare each pair of source and destination files, and in some cases, do not modify the destination at all
install -C ...
-d
treat all arguments as directory names; create all components of the specified directories
install -d ...
-D
create all leading components of DEST except the last, or all components of --target-directory, then copy SOURCE to DEST
install -D ...
-g
set group ownership, instead of process' current group
install -g ...
-m
set permission mode (as in chmod), instead of rwxr-xr-x
install -m ...
-o
set ownership (super-user only)
install -o ...
-p
apply access/modification times of SOURCE files to corresponding destination files
install -p ...
-s
strip symbol tables
install -s ...
--strip-program
program used to strip binaries
install --strip-program ...
-S
override the usual backup suffix
install -S ...
-t
copy all SOURCE arguments into DIRECTORY
install -t ...
-T
treat DEST as a normal file
install -T ...
-v
print the name of each directory as it is created
install -v ...
--preserve-context
preserve SELinux security context
install --preserve-context ...
-Z
set SELinux security context of destination file and each created directory to default type
install -Z ...
--context[
like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX
install --context[ ...
--help
display this help and exit
install --help ...
--version
output version information and exitThe backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the
install --version ...
--backup
none, offnever make backups (even if --backup is given)numbered, tmake numbered backupsexisting, nilnumbered if numbered backups exist, simple otherwisesimple, neveralways make simple backupsAUTHORWritten by David MacKenzie.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report install translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
install --backup ...