how to install .sh file in ubuntu

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/shbash file_name.sh
#Ex: $ bash Anaconda3-2020.11-Linux-x86_64.sh 
Source

Also in C++: