freeCodeCamp/guide/chinese/bash/bash-mv/index.md

22 lines
440 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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