giving the command in the directory where the file is located
1284
How do I cd into a directory in the home folder?
86884
How to cd to a directory with a name containing spaces in bash?
91644
Changing the working directory when including files in a subdirectory
15011
How to move some files to their parent directory?
144108
How do I perform commands in another folder, without repeating the folder path?
83599
Refer to a file under the same directory of a script found in $PATH
114848
How to execute one command on all files within a folder
72388
the slash (/) after a directory name on shell commands
141672
How to give permissions to specific command?
144371
How do I change directories from the command line?
25802
When writing a bash script, how do I get the absolute path of the location of the current file?
39031
How can I copy the path of a file in Finder?
6538
How do you properly determine the current script directory?
52622
Same folder and file name in same location
84843
View physical location of a file/directory on a hard disk
12211
How to run a command when a directory's contents are updated?
16958
How do I get the directory that a program is running from?