shell script in terminal code example
Example 1: how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
Example 2: shell file in linux
#!/bin/sh
ls
chmod +x <fileName>
./fileName. # or use ->. bash fileName
#!/bin/sh
ls