Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2108694
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类:

2006-03-07 12:24:36


关键字:  Linux 快速 目录 切换 目录切换 工具

                     ===============================
                      Change Directory Quickly(CDQ)
                     ===============================

INTRODUCTION:
If you work on Linux, maybe you always are bothered by changing directories frequently as me. With this tools, you can change directory from one to another so conveniently.

For example, if you change directory among "/usr/src", "/usr/src/linux" and "/home/user/backup/" frequently, you need to add those three directories to CDQ database first:
    $ cd /usr/src
    $ cdq -a src .
    $ cdq -a linux /usr/src/linux
    $ cdq -a backup /home/user/backup
then you can change to any of those diectories by inputing its index. For example, if you want to change to /home/user/backup, you can input:
    $ cdq 3
or
    $ cdq
        1 src
            /usr/src
        2 linux
            /usr/src/linux
        3 backup
            /home/user/backup
    Please input index of directory: 3
        cd /home/usr/backup
    $


INSTALLATION:
After downloading package, please decompress first, then type ". ./setup -i" to install CDQ; or you can type "./setup -h" to get usage of setup. It is not recommended to modify any files in installation package if you are not familar with shell script programming. After installation, cdq becomes available in current terminal, and new opened terminal.


USAGE:
after installed this tools, you can type "cdq -h" or "cdq help" to get how to use this tool.


THANKS TO:
Mr. Yang and Mr. Feng, they gave me some valuable hints,Thanks!


ANNOUNCEMENT:
if you have any question, please send email to web_surf@163.com.

点击这里下载CDQ(下载后, 请将文件名改为cdq-1.0.2.tar.gz, 再解压)


注:
   1, 欢迎讨论、拍砖。
   2, 本文中的代码可以任意使用、修改, 但请在源码中注明来源(http://websurf.cublog.cn/)。
   3, 本文中的代码没有做完整的测试, 本人不作任何担保; 如果这些代码给你带来任何形式的影响,一概与本人无关。
   4, 转载本文请注明出处(http://websurf.cublog.cn/)。
   
阅读(2407) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~