Directories Used by “cd”

A colon-separated list of directories used as a search path for the cd builtin command.

Examples

Make cd always look into $HOME when the directory wasn’t found in the current directory :

1
export CDPATH=".:$HOME"
BashSupport Pro is a Bash IDE with support for $CDPATH – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal