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

18 lines
696 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 cd
localeTitle: Bash cd
---
## Bash命令cd
**将Directory更改**为指定的路径,例如`cd projects`
有一些非常有用的论据来帮助这个:
* `.`指的是当前目录,例如`./projects`
* `..`可以用来向上移动一个文件夹,使用`cd ..` ,并且可以组合起来向上移动多个级别`../../my_folder`
* `/`是系统到达核心文件夹的根,例如`system` `users`等。
* `~`是主目录,通常是路径`/users/username` 。通过将其包含在路径的开头,例如`~/projects` ,移回到相对于此路径引用的文件夹。
### 更多信息:
* [维基百科](https://en.wikipedia.org/wiki/Cd_(command))