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.