How to change directory in a shell script?

by Ramya 2009-12-05 19:46:49

Change directory in a shell script:

To change directory in a shell script use "cd" command.
echo "Enter the directory name:"
read fname
cd $fname


Above command will change the current working directory to the given directory name.Razz

Tagged in:

1039
like
0
dislike
0
mail
flag

You must LOGIN to add comments