I have this weird situation on my Mac running OSX Lion where the ~ (tilda) does not go to my user directory. Instead when I type "cd ˜", I get:
-bash: cd: ˜: No such file or directory
Any advice on how to fix this?
I have this weird situation on my Mac running OSX Lion where the ~ (tilda) does not go to my user directory. Instead when I type "cd ˜", I get:
-bash: cd: ˜: No such file or directory
Any advice on how to fix this?
There are several characters like a tilde, and yours
˜
is not the one for the homedir~
(close together:˜
vs~
).I've run into a related issue a couple of time that may have prompted the question: bash doesn't do tilde expansion on quoted filepaths (which you might use if you have spaces in the path). For example,
cd "~/Documents/My Project"
gets you the same error originally posted. The trick is to leave the tilde and the first slash outside the quote:cd ~/"Documents/My Project"
works just fine.