Find the path from where the variable $CDPATH is located?

Published: 11/12/2017
Find the path from where the variable $CDPATH is located?
Source: UNIX.STACKEXCHANGE.COM

Just out of curiosity, is there any way by which I can find the file from where a variable such as $PATH , $CDPATH is echoed from? Second question: Also how does bash know about these variables? Is it env ? If so, is this a file? Can such new custom variables be added?

Read more
Related news
Comment
FACEBOOK