add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,28 +1,36 @@
# mv
> 移动或重命名文件目录。
> 更多信息:<https://www.gnu.org/software/coreutils/mv>.
> 移动或重命名文件目录。
> 更多信息:<https://www.gnu.org/software/coreutils/mv>
- 移动文件到任意位置
- 当目标不是已存在的目录时重命名文件或目录
`mv {{路径/到/来源}} {{路径/到/目标}}`
`mv {{path/to/source}} {{path/to/target}}`
- 移动文件到其他目录,并保持文件名不变
- 将文件或目录移动到已存在的目录中
`mv {{路径/到/来源1 路径/到/来源2 ...}} {{路径/到/目标目录}}`
`mv {{path/to/source}} {{path/to/existing_directory}}`
- 覆盖现有文件前无需确认
- 将多个文件移动到已存在的目录中,保持文件名不变
`mv -f {{路径/到/来源}} {{路径/到/目标}}`
`mv {{path/to/source1 path/to/source2 ...}} {{path/to/existing_directory}}`
- 无论是否有文件权限,覆盖现有文件前均需要确认:
- 在覆盖现有文件之前,不提示([f]确认:
`mv -i {{路径/到/来源}} {{路径/到/目标}}`
`mv --force {{path/to/source}} {{path/to/target}}`
- 不要覆盖现有的目标文件:
- 覆盖现有文件之前,无论文件权限如何,交互式地提示确认 [i]
`mv -n {{路径/到/来源}} {{路径/到/目标}}`
`mv --interactive {{path/to/source}} {{path/to/target}}`
- 详细模式,移动后打印文件
- 不在目标位置覆盖([n])现有文件:
`mv -v {{路径/到/来源}} {{路径/到/目标}}`
`mv --no-clobber {{path/to/source}} {{path/to/target}}`
- 以 [v] 详细模式移动文件,显示已移动的文件:
`mv --verbose {{path/to/source}} {{path/to/target}}`
- 指定 [t] 目标目录,以便您可以使用外部工具收集可移动的文件:
`{{find /var/log -type f -name '*.log' -print0}} | {{xargs -0}} mv --target-directory {{path/to/target_directory}}`