如何在Shell中快速切换目录

1、回到上一次进入的路经
cd -
2、回到Home
cd ~
3、自动补齐实例,cd /usr/src/redhat,可以用
cd /u【TAB】s【TAB】r【TAB】
4、!$ 表示上一个命令的最后一个参数
例如ls -hl /rocrocket/software/program/git/bin
cd !$会进入上一个命令最后一个参数的目录
原文地址:https://www.cnblogs.com/YatHo/p/6970939.html