Find where a bash command is defined or sourced from?
110819
How to use `which` on an aliased command?
12149
How do I get the path and name of the file that is currently executing?
158565
Determine if a function exists in bash
94622
How does one extract a command's exit status into a variable?
14486
What is the variable that contains the source file name?
12013
How to find out the reason a command/code was executed on Linux?
43823
How to find out the terminal command of an application?
144458
How can I tell what command an alias stands for?
50382
Resolve nested aliases to their source commands
16958
How do I get the directory that a program is running from?
2267
How to detect if a script is being sourced
6958
How can I check if a program exists from a Bash script?
40037
How to detect the OS from a Bash script?
10267
How do I find the location of Python module sources?
55513
Where have I set my bash PATH?
32654
How to know where shell variables and functions are set?
63890
Finding where source has branched from git