Files
freeCodeCamp/guide/chinese/bash/bash-mv/index.md
2018-10-16 21:32:40 +05:30

22 lines
440 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.

---
title: Bash mv
localeTitle: Bash mv
---
## Bash命令mv
**移动文件和文件夹。**
```
mv source target
mv source ... directory
```
第一个参数是要移动的文件,第二个参数是将其移动到的位置。
常用选项:
* `-f`强制移动它们并覆盖文件而不用与用户核对。
* `-i`在覆盖文件之前提示确认。
### 更多信息:
* [维基百科](https://en.wikipedia.org/wiki/Mv)