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/install.

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

install --owner {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}

install --group {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}

install --mode {{+x}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}

install --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}}