I am trying to change a directory to home/developer.
cd home/developer in my shell script.
After executing script it is again coming to original directory,where I executed shell script.
When you start your script a new process is created that only inherits your environment. Your current environment stays as it is. You can start your script like this if you want to change the current directory from a script: