本文介绍在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]# Linux系统下关于ZIP命令的使用RHEL5.4下使用一条语句执行mkdir和cd命令相关资讯 Linux基础教程
- Linux基础教程:对文件打包压缩 (03月08日)
- 基础教程:Linux 新手应该知道的 (09/06/2015 21:17:20)
- Linux基础教程:find 与 xargs (04/05/2015 10:20:11)
| - Linux基础教程:tar 命令使用介绍 (12/03/2015 13:19:47)
- Linux基础教程(1)操作系统基础 (08/15/2015 20:44:01)
- Linux基础教程:从源码安装软件 (04/05/2015 10:14:45)
|
本文评论 查看全部评论 (0)