Quote:
Originally Posted by cfajohnson
"cd ../$USER" will not place you in your home directory unless you are in a directory on the same level as your home directory.
You may be thinking of:
Code:
cd ~user
That will not work with a variable unless you use eval:
Code:
eval "cd ~$USER"
To go to your home directory, use cd with no directory.
|
Hi, thank you for your prompt response. I missed that condition. It is from the home directory and you type "..", and they meant to ask about ".." instead of $USER I guess.
I think there might be chance that bash fails on symbolic link?