Scroll to navigation

install(1) General Commands Manual install(1)

NAME

install - Copy SOURCE to DEST or multiple SOURCE(s) to the existing DIRECTORY, while setting permission modes and owner/group

SYNOPSIS

install [--backup] [-b ] [-c ] [-C|--compare] [-d|--directory] [-D ] [-g|--group] [-m|--mode] [-o|--owner] [-p|--preserve-timestamps] [-s|--strip] [--strip-program] [-S|--suffix] [-t|--target-directory] [-T|--no-target-directory] [-v|--verbose] [-P|--preserve-context] [-Z ] [--context] [-U|--unprivileged] [-h|--help] [-V|--version] [files]

DESCRIPTION

Copy SOURCE to DEST or multiple SOURCE(s) to the existing DIRECTORY, while setting permission modes and owner/group

OPTIONS

make a backup of each existing destination file
like --backup but does not accept an argument
ignored
compare each pair of source and destination files, and in some cases, do not modify the destination at all
treat all arguments as directory names. create all components of the specified directories
create all leading components of DEST except the last, then copy SOURCE to DEST
set group ownership, instead of process's current group
set permission mode (as in chmod), instead of rwxr-xr-x
set ownership (super-user only)
apply access/modification times of SOURCE files to corresponding destination files
strip symbol tables (no action Windows)
program used to strip binaries (no action Windows)
override the usual backup suffix
move all SOURCE arguments into DIRECTORY
treat DEST as a normal file
explain what is being done
preserve security context
set SELinux security context of destination file and each created directory to default type
set security context of files and directories
install-help-unprivileged
Print help
Print version
[files]

VERSION

v(uutils coreutils) 0.7.0

EXAMPLES

Copy files to the destination:

install path/to/source_file1 path/to/source_file2 ... path/to/destination

Copy files to the destination, setting their ownership:

install [-o|--owner] user path/to/source_file1 path/to/source_file2 ... path/to/destination

Copy files to the destination, setting their group ownership:

install [-g|--group] user path/to/source_file1 path/to/source_file2 ... path/to/destination

Copy files to the destination, setting their `mode`:

install [-m|--mode] +x path/to/source_file1 path/to/source_file2 ... path/to/destination

Copy files and apply access/modification times of source to the destination:

install [-p|--preserve-timestamps] path/to/source_file1 path/to/source_file2 ... path/to/destination

Copy files and create the directories at the destination if they don't exist:

install -D path/to/source_file1 path/to/source_file2 ... path/to/destination

The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

install (uutils coreutils) 0.7.0