What does 'cd -' stand for?

后端 未结 8 1217
星月不相逢
星月不相逢 2020-12-13 05:41

In a bash shell script today I noticed the below command at the end of the script. I know what is cd but I am unaware of the significance of a dash after it.

8条回答
  •  清歌不尽
    2020-12-13 05:51

    From the man found here : http://ss64.com/bash/cd.html

    Quickly get back
    $ cd - 
    

提交回复
热议问题