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

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

原文地址:https://www.cnblogs.com/wujingcqu/p/4025123.html