Let's say there is a file we would like to execute, a bash script named add.sh, for example. Typing ./add.sh however, yields a permission error. Getting the permissions is a simple process.
To determine the permissions a file has, type:
ls -l filename, or, in our case, ls -l ./add.sh
This prints ...