Find all files with 777 permissions:
Read more$ find . -type f -perm 777 -print
To change file permissions on linux run the command below:
$ chmod 777 filename.sh
To make a bash script executable on linux run the command below:
$ chmod u+x filename.sh
To count lines in a file on linux run the command below:
$ wc -l filename