Change current directory to the directory defined by the environment variable ‘vardir’.
cd $vardir
Change the current directory to the user bob’s home directory (if you have permission).
cd ~bob
Change current directory to the directory defined by the environment variable ‘vardir’.
cd $vardir
Change the current directory to the user bob’s home directory (if you have permission).
cd ~bob