doubt in "Bookmarking our location" !!!

Hello sir,
when ever we log into the terminal.
By default we go into "\root" as the pwd.
I save my shell scripts in a location in the root for which I need to do "cd <dir name>" multiple no.of times to go there.

So I am writing a code that will bookmark the location so that when I hit that command, then I can directly go to that location.

I am the root user.The code that I wrote is :-

If u execute it, I have no errors.The bookmark is created but still I am staying in the current location itself.Please execute this shell once in any location of your file system.We are trying to BOOKMARK it with a name which will be the future reference of that location instead of using "cd" multiple times.....
can u please tell me whats going wrong ??

Use aliases in your .bashrc file, for instance for the command mydir:

alias mydir=`cd /home/nsharath`

Regards

Hello Mr Franklin52,
As per your post I did do the alias in the .bashrc.It is working very well.But the problem is that it is being run successfully from the next time when I open the terminal.
So can u please tell me how to make it run when ever I create the alias...I could do it by typing the command manually on the terminal, but can u tell me how to get the same effect from .bashrc.

I use two aliases: "ycd+" to bookmark the current working directory; and "ycd" previously mentioned here: http://www.unix.com/unix-advanced-expert-users/18725-using-alias.html\#post71630

alias ycd+='pwd>>$HOME/.ycd_list;sort -u -o $HOME/.ycd_list $HOME/.ycd_list'
alias ycd='select ID in $(<$HOME/.ycd_list);do [ $ID ] && cd $ID;break;done'