Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

20
tldr/mv
View File

@@ -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}}`