install Command Examples

Copy files and set attributes. Copy files (often executable) to a system location like /usr/local/bin, give them the appropriate permissions/ownership. More information: https://www.gnu.org/software/coreutils/manual/html_node/install-invocation.html.

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

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

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

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

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

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