Subcommands (2)
Options (4)
-o, --ownerbooleanCopy files to the destination, setting their ownership
Example:
install {{[-o|--owner]}} {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}-g, --groupbooleanCopy files to the destination, setting their group ownership
Example:
install {{[-g|--group]}} {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}-m, --modebooleanCopy files to the destination, setting their `mode`
Example:
install {{[-m|--mode]}} {{+x}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}-p, --preserve-timestampsbooleanCopy files and apply access/modification times of source to the destination
Example:
install {{[-p|--preserve-timestamps]}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}Examples (6)
Copy files to the destination
install path/to/source_file1 path/to/source_file2 ... path/to/destinationCopy files to the destination, setting their ownership
install [-o|--owner] user path/to/source_file1 path/to/source_file2 ... path/to/destinationCopy files to the destination, setting their group ownership
install [-g|--group] user path/to/source_file1 path/to/source_file2 ... path/to/destinationCopy files to the destination, setting their `mode`
install [-m|--mode] +x path/to/source_file1 path/to/source_file2 ... path/to/destinationCopy 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/destinationCopy 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/destinationmade by @shridhargupta | data from tldr-pages