That is not the same use case. You could use this to get the current location of the script being run (not the location where it runs). readlink -f $0
That is not the same use case. You could use this to get the current location of the script being run (not the location where it runs). readlink -f $0