- 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
推薦閱讀
- Cinema 4D R13 Cookbook
- 人工智能與人工生命
- Photoshop CS3圖像處理融會貫通
- 零起點學西門子S7-200 PLC
- Visual FoxPro程序設計
- 人工智能:語言智能處理
- 奇點將至
- Hands-On Dashboard Development with QlikView
- 會聲會影X4中文版從入門到精通
- Moodle 2.0 Course Conversion(Second Edition)
- 開放自動化系統應用與實戰:基于標準建模語言IEC 61499
- Oracle 11g基礎與提高
- Spark Streaming實時流式大數據處理實戰
- Learn Power BI
- 數字中國:大數據與政府管理決策