文章目录[隐藏]

linux 直接进入目录

vim ~/.bashrc
shopt -s autocd

[email protected]:~# shopt -s autocd
[email protected]:~# shopt | grep autocd
autocd          on
[email protected]:~# shopt -u autocd
[email protected]:~# shopt | grep autocd
autocd          off