mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 14:00:22 +00:00
Update cheatsheets
This commit is contained in:
20
tldr/mv
20
tldr/mv
@@ -20,22 +20,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`mv {{path/to/source1 path/to/source2 ...}} {{path/to/existing_directory}}`
|
||||
|
||||
- Do not prompt ([f]) for confirmation before overwriting existing files:
|
||||
- Do not prompt for confirmation before overwriting existing files:
|
||||
|
||||
`mv --force {{path/to/source}} {{path/to/target}}`
|
||||
`mv {{[-f|--force]}} {{path/to/source}} {{path/to/target}}`
|
||||
|
||||
- Prompt for confirmation [i]nteractively before overwriting existing files, regardless of file permissions:
|
||||
- Prompt for confirmation interactively before overwriting existing files, regardless of file permissions:
|
||||
|
||||
`mv --interactive {{path/to/source}} {{path/to/target}}`
|
||||
`mv {{[-i|--interactive]}} {{path/to/source}} {{path/to/target}}`
|
||||
|
||||
- Do not overwrite ([n]) existing files at the target:
|
||||
- Do not overwrite existing files at the target:
|
||||
|
||||
`mv --no-clobber {{path/to/source}} {{path/to/target}}`
|
||||
`mv {{[-n|--no-clobber]}} {{path/to/source}} {{path/to/target}}`
|
||||
|
||||
- Move files in [v]erbose mode, showing files after they are moved:
|
||||
- Move files in verbose mode, showing files after they are moved:
|
||||
|
||||
`mv --verbose {{path/to/source}} {{path/to/target}}`
|
||||
`mv {{[-v|--verbose]}} {{path/to/source}} {{path/to/target}}`
|
||||
|
||||
- Specify [t]arget directory so that you can use external tools to gather movable files:
|
||||
- Specify target directory so that you can use external tools to gather movable files:
|
||||
|
||||
`{{find /var/log -type f -name '*.log' -print0}} | {{xargs -0}} mv --target-directory {{path/to/target_directory}}`
|
||||
`{{find /var/log -type f -name '*.log' -print0}} | {{xargs -0}} mv {{[-t|--target-directory]}} {{path/to/target_directory}}`
|
||||
|
||||
Reference in New Issue
Block a user