how to execute an sh file in ubuntu code example Example: how to run shell script chmod +x <fileName> ./fileName. # or use ->. bash fileName