How can I find script's directory?
6538
How do you properly determine the current script directory?
92196
Get path of my script file
16958
How do I get the directory that a program is running from?
115718
What is the "~/" directory?
74116
How do I find the terminal command for anything?
82693
How to test if a file is a directory in a batch script?
2267
How to detect if a script is being sourced
63266
How to do ls with a wildcard and see the directory name
118180
Get the current script file name
82805
How to get the location of a program in Ubuntu terminal?
158866
Is there any function to retrieve the path associated with an inode?
111771
Equivalent of Python's dir in Javascript
26048
How do I know the script file name in a Bash script?
83599
Refer to a file under the same directory of a script found in $PATH
103812
How to see the command attached to a bash alias?
25351
How do I get the path of the Python script I am running in?
35508
How to find program name(s) of an installed package?