When ever your create bash script file you mush give execute permission (x) to the specified file then only you can run the bash script file.
By through chmod Linux command we can grand executed permission to that bash shell script file.
Before it is permission
-rw-r—r--
By through following command
#chmod +x filename.sh
After granted permission
-rwxr-xr-x
It gives the executed permission to the all person (like root, group and other)
.sh extension refer to the it is the bash script file
0 Comments