官术网_书友最值得收藏!

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
主站蜘蛛池模板: 梧州市| 柘城县| 达孜县| 六枝特区| 赣州市| 乌兰县| 新郑市| 科技| 襄城县| 轮台县| 长兴县| 天峻县| 闽清县| 五峰| 巨野县| 西畴县| 建宁县| 綦江县| 新巴尔虎右旗| 柯坪县| 丰原市| 高碑店市| 新沂市| 松溪县| 都江堰市| 前郭尔| 蓬溪县| 石棉县| 彩票| 古交市| 怀仁县| 石棉县| 龙州县| 巩义市| 浦县| 新安县| 安丘市| 颍上县| 阜城县| 府谷县| 黄冈市|