你可以用“cd -”在最近访问的两个目录之间进行切换,
如下所示:
# cd /tmp/very/long/directory/structure/that/is/too/deep
# cd /tmp/subdir1/subdir2/subdir3
# cd -
# pwd
/tmp/very/long/directory/structure/that/is/too/deep
# cd -
# pwd /tmp/subdir1/subdir2/subdir3
# cd -
# pwd
/tmp/very/long/directory/structure/that/is/too/deep
灵活的切换十分有用啊,在最近的两个目录间切换
阅读(346) | 评论(0) | 转发(0) |