computer_knowledge_notes/Software/文件管理/mv.md

32 lines
628 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 简介
移动文件
#### 语法
```
mv [option]... [-T] SOURCE DEST # 将SOURCE重命令为DEST
mv [option]... SOURCE... DIRECTORY # 将SOURCES移动到DIRECTORY
mv [option]... -t DIRECTORY SOURCE... # 将SOURCES移动到DIRECTORY
```
#### 选项
```
--backup
-b # 类似于--backup但不接收参数
-f # 在覆盖前不提示
-i # 在覆盖前提示
-n # 不覆盖已有文件
--strip-trailing-slashes
-S #
-t # 将SOURCES移动到DIRECTORY
-T # 将DEST视为普通文件
-u # 当SOURCE文件比目标文件新或目标文件缺失才移动
-v # 解释下步的动作
-Z #
--help
--version
```