Unix shell script find out which directory the script file resides?
4162
How can I get the source directory of a Bash script from within the script itself?
54838
determine shell in script during runtime
31185
Get path of current script when executed through a symlink
12579
How to determine the current shell I'm working on
72221
View remote value of $PATH inside shell script
82805
How to get the location of a program in Ubuntu terminal?
32654
How to know where shell variables and functions are set?
112632
How can I find the source code for linux commands?
8423
Abbreviated current directory in shell prompt?
95193
Find out current working directory of a running process?
146844
How do I *reliably* and *simply* get the current shell interpreter name?
58433
What's a concise way to check that environment variables are set in a Unix shell script?
43823
How to find out the terminal command of an application?
51749
What's the best way to determine the location of the current PowerShell script?
3723
Can a shell script set environment variables of the calling shell?
101843
Complete view of where the PATH variable is set in bash
144996
How do I get the path my script is running in?