linuxdirectoryshworking-directory

Shell script current directory?


What is current directory of shell script? Is this current directory from which I called it? Or this directory where the script is located?


Solution

  • The current(initial) directory of shell script is the directory from which you have called the script.