Hack 4. Use “cd -” to toggle between the last two directories
by Ramesh
You can toggle between the last two current directories using cd – as shown below.
- # 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
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .