Tuesday, February 17, 2009

004 通过cd- 在最后访问的两个目录之间切换

你可以像下面的例子中那样通过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

No comments:

Post a Comment