- Bash Quick Start Guide
- Tom Ryder
- 92字
- 2021-07-23 16:58:59
The cd command
Where pwd or $PWD gets the current working directory for the shell, the cd Bash builtin command sets the working directory:
$ pwd /home/bashuser $ cd /tmp $ pwd /tmp
When issued with no arguments, the cd command defaults to the current user's home directory. Again, it does this by reading the $HOME environment variable first, if it can:
$ cd $ pwd /home/bashuser
You can change to the parent of the current directory with the .. name:
$ pwd /home/bashuser $ cd .. $ pwd /home
推薦閱讀
- 現代測控系統典型應用實例
- 過程控制工程及仿真
- PostgreSQL Administration Essentials
- 網絡組建與互聯
- Kubernetes for Serverless Applications
- 悟透AutoCAD 2009完全自學手冊
- 工業機器人實操進階手冊
- 空間機器人
- Unreal Development Kit Game Design Cookbook
- 人工智能:智能人機交互
- Hands-On Business Intelligence with Qlik Sense
- Hands-On Microservices with C#
- 傳感技術基礎與技能實訓
- D3.js Quick Start Guide
- GAN實戰