How can I execute the unix command "cd - Change directory" command, so that my command prompt should be reflected for that change.
Example : Now you are in your home directory i.e /home/naresh and you have some sub directory called unixinfo in your home directory. i want to write a script,so that if i execute that script my commnad prompt should go to that subdirectory.
I called cd /home/naresh/unixinfo command in script. But my command prompt is not changed. Can somebody please help me
I can use the alias command for this. But i am doing some mini project for that
i will pass argument(dir name) to my script.my script will take the complete path from one
text i maintain and trying to change the directory to that path.
Can somebody suggest any alternative