I am new to the Mac OSX environment, and was programming in C using the terminal. To change the current directory, I used the command
cd .. to go one level up. However, this had a weird effect on the terminal. A clear screen on my mac terminal used to show this path always-
However, since the time I did
cd ..(to go one level up), the current pathway of the terminal has changed to:
As you can see, there is a tilde now in the pathname. On reading about it, it looks like this tilde is used to represent the home directory in mac OS. However, I would like to get rid of it, as it was earlier.
Could you please provide a way to do that? Any help would be highly appreciated.
EDIT- Adding more information
I tried to think of it, and realized that
cd .. would have taken me one level up. So, I entered
pwdin the terminal to see the current pathway (this is with the tilde situation), and got this-
manishs-mbp:~ manishgiri$ pwd /Users/manishgiri
Maybe the tilde appears because I am now by default in the /Users(Home) folder. If that's the case, then how do I revert it back to the previous settings to get rid of the tilde?