CDPATH
CDPATH is to cd what PATH is to exectable. You can go to a folder inside any of the CDPATH folders by just cd 'folder name'
– no mater where you are currently.
export CDPATH='.:~:/var/www/html:~/Scripts'
CDPATH is to cd what PATH is to exectable. You can go to a folder inside any of the CDPATH folders by just cd 'folder name'
– no mater where you are currently.
export CDPATH='.:~:/var/www/html:~/Scripts'
Adding a new folder to the current path…
export PATH=NEW_FOLDER:$PATH
Use this command to find the current path…
echo $PATH