how to execute an sh file in linux

C++
chmod +x <fileName>
./fileName.  # or use ->. bash fileName$ chmod +x fileName
$ ./fileName./file.sh#!/bin/sh
Source

Also in C++: