how to execute .sh file in linux

C++
chmod +x <fileName>
./fileName.  # or use ->. bash fileName./file.sh./script-name-here.sh #Chage the "script-name-here" to the name of the .sh file.#!/bin/sh
Source

Also in C++: