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.
Shell-script - Read input and change directory
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 scripting . Thanks for your time.

All rights reserved. © www.w3calculator.com