首页 > 其他 > 详细

Using CDPATH environment to accelerate navigation among multiple commonly used directories.

时间:2014-10-14 20:54:50      阅读:161      评论:0      收藏:0      [点我收藏+]
Using CDPATH environment to accelerate navigation among multiple commonly used directories.

Using CDPATH environment to accelerate navigation among multiple commonly used directories.

It is common that we want to change directory (cd command) between several directories, in which case the simple (cd -) command is not enough.

That is where the CDPATH comes to help, you can set the most often used directories in ~/.bashrc file using the following format:

export CDPATH=.:/home/wujing/work/huawei-test:/home/wujing/work/myprogram/researchprog/io-scheduling

and then execute

source ~/.bashrc

The cd command will list the subdirectories inside the given paths.

Author: wujing

Created: 2014-10-14 二 20:08

Emacs 24.3.1 (Org mode 8.2.6)

Validate

Using CDPATH environment to accelerate navigation among multiple commonly used directories.

原文:http://www.cnblogs.com/wujingcqu/p/4025123.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!