Linux系统下如何快速在最近的2个目录之间来回切换
2010-06-20 16:19
190 查看
本文介绍在Linux系统下如何在最近使用的2个目录中来回切换,呵呵,老鸟的话就可以飘过,本文介绍只是雕虫小技。。。
下列操作在rhel 5.4下面操作成功。。。
可以 用cd - 在最近的2个访问的目录之间快速切换,呵呵,下面看下效果
[root@localhost ~]# mkdir test1
[root@localhost ~]# mkdir test2
[root@localhost ~]# cd test1
[root@localhost test1]# pwd
/root/test1
[root@localhost test1]# cd ../test2
[root@localhost test2]# cd -
/root/test1
[root@localhost test1]# pwd
/root/test1
[root@localhost test1]# cd -
/root/test2
[root@localhost test2]# pwd
/root/test2
[root@localhost test2]# cd /etc/httpd/
[root@localhost httpd]# pwd
/etc/httpd
[root@localhost httpd]# cd -
/root/test2
[root@localhost test2]# cd -
/etc/httpd
[root@localhost httpd]#
阅读更多
[root@localhost ~]# mkdir test2
[root@localhost ~]# cd test1
[root@localhost test1]# pwd
/root/test1
[root@localhost test1]# cd ../test2
[root@localhost test2]# cd -
/root/test1
[root@localhost test1]# pwd
/root/test1
[root@localhost test1]# cd -
/root/test2
[root@localhost test2]# pwd
/root/test2
[root@localhost test2]# cd /etc/httpd/
[root@localhost httpd]# pwd
/etc/httpd
[root@localhost httpd]# cd -
/root/test2
[root@localhost test2]# cd -
/etc/httpd
[root@localhost httpd]#
阅读更多
相关文章推荐
- Linux系统下如何快速在最近的2个目录之间来回切换
- 如何在Linux系统中快速切换目录(目录栈的使用) pushd popd dirs
- linux系统下快速切换到oracle目录下
- linux 系统下如何进行用户之间的切换
- linux如何快速切换到某目录
- 如何在Linux下环境下快速切换工作目录
- linux 系统下如何进行用户之间的切换
- linux不同的内核与根文件系统快速切换
- 如何设置Windows 8与Windows 7双系统之间的切换问题
- 如何在 Linux 系统查询机器最近重启时间 | Linux 中国
- Ubuntu中如何切换到超级用户(root)及在VMware虚拟机中Linux在虚拟终端之间切换的方法
- Linux系统图形界面和命令行界面之间的切换
- 如何在linux正常启动的系统中(挂载rootfs)某个目录下来加载ubi文件类型的recoveryfs?
- Linux系统如何显示中文目录和文件名
- Linux系统下如何删除某个目录下大量文件
- linux中如何快速在某目录下打开终端 及vim多文件调试
- 在linux系统中,如何删除创建的用户并同时删除帐户的主目录?
- 如何在 Linux 系统查询机器最近重启时间
- 〖Linux〗多个JDK版本之间快速切换
- 快速设置linux主机与PC之间共享目录--sudo mount -t cifs //192.168.0.41/share_ share_pc/ -o user=lms