how to get a script to run a program in terminal linux code example Example: how to run shell script chmod +x <fileName> ./fileName. # or use ->. bash fileName