How to get the directory of a sourced script in RedHat 6 with bash
10754
determining path to sourced shell script
33584
How to determine where an environment variable came from?
21291
Lookup shell variables by name, indirectly
1021
How do I only display the base dir in my Ubuntu Terminal?
84333
Bash scripts ran from from gnome/nautilus don't have environment variables
37703
How can I check if a directory exists in a Bash shell script?
99250
How do I read the source code of shell commands?
6538
How do you properly determine the current script directory?
92196
Get path of my script file
83599
Refer to a file under the same directory of a script found in $PATH
25802
When writing a bash script, how do I get the absolute path of the location of the current file?
15018
How to quickly cd to a command's directory after used the 'which' or 'type'
89409
How might I get the script filename from within that script?
154472
Can I export a variable to the environment from a bash script without sourcing it?
41856
How to detect the desktop environment in a bash script?
126027
Run bash script at login stored in the home folder?
152015
Can a script modify an environment variable of its calling shell?