Get current directory of script file in shell script .shBash Posted on December 10, 2014 | by admin DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )"&& pwd ) Creds: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related