I have a shell script in
/usr/bin. Let's call it
It contains this:
echo "I am located in $PWD" echo "I am called from this directory: ???"
/home/Documents I expect the following output:
I am located in /usr/bin I am called from this directory: /home/Documents
How can I get the directory path where the script is run from?