Shell-script - To change directory using bash scripting, Read input and change directory

To change directory using bash scripting

The unix command used to change a directory is "cd" command. This is a simple bash script to change the directory.

  echo "Enter the directory name:"
  read fname
  cd $fname

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

The topic on Shell-script - To change directory using bash scripting is posted by - Venki

Hope you have enjoyed, Shell-script - To change directory using bash scriptingThanks for your time

Tech Bluff