install
Options
--backup=<CONTROL>-
make a backup of each existing destination file
-b-
like --backup but does not accept an argument
-c-
install-help-ignored
--compare,-C-
install-help-compare
--directory,-d-
install-help-directory
-D-
install-help-create-leading
--group=<GROUP>,-g <GROUP>-
install-help-group
--mode=<MODE>,-m <MODE>-
install-help-mode
--owner=<OWNER>,-o <OWNER>-
install-help-owner
--preserve-timestamps,-p-
install-help-preserve-timestamps
--strip,-s-
install-help-strip
--strip-program=<PROGRAM>-
install-help-strip-program
--suffix=<SUFFIX>,-S <SUFFIX>-
override the usual backup suffix
--target-directory=<DIRECTORY>,-t <DIRECTORY>-
install-help-target-directory
--no-target-directory,-T-
install-help-no-target-directory
--verbose,-v-
install-help-verbose
--preserve-context,-P-
install-help-preserve-context
--context=<CONTEXT>,-Z <CONTEXT>-
install-help-context
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 under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.