Find out what the (shell) script was invoked with
2939
How do I parse command line arguments in Bash?
23714
How may I reference the script tag that loaded the currently-executing script?
10754
determining path to sourced shell script
32609
How to tell what method was used to log in (Password vs. Keyfile) from the bashrc
19553
Detect init system using the shell
16958
How do I get the directory that a program is running from?
51749
What's the best way to determine the location of the current PowerShell script?
151141
Find which process is modifying a file
128874
Breaking down shell scripts; What happens under the hood?
133997
How can I debug a .BAT script?
120413
How can I detect if the shell is controlled from SSH?
80855
How can I find the program I'm hiding in bash
7240
Find out which process is changing a file
26095
Write18: capturing shell (script) output as command/variable?
137056
View shell function's current definition
12149
How do I get the path and name of the file that is currently executing?
18346
List all commands that a shell knows