Chinaunix首页 | 论坛 | 博客
  • 博客访问: 690990
  • 博文数量: 108
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 1436
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-31 09:49
文章分类
文章存档

2019年(16)

2015年(2)

2014年(20)

2013年(70)

我的朋友

分类: LINUX

2013-09-15 22:06:59

你可以用“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

灵活的切换十分有用啊,在最近的两个目录间切换
阅读(309) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~