mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 16:55:38 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy files to the destination, setting their ownership:
|
||||
|
||||
`install --owner {{user}} {{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}}`
|
||||
|
||||
- Copy files to the destination, setting their group ownership:
|
||||
|
||||
`install --group {{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}}`
|
||||
|
||||
- Copy files to the destination, setting their `mode`:
|
||||
|
||||
`install --mode {{+x}} {{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}}`
|
||||
|
||||
- Copy files and apply access/modification times of source to the destination:
|
||||
|
||||
`install --preserve-timestamps {{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}}`
|
||||
|
||||
- Copy files and create the directories at the destination if they don't exist:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user