What is a .sh file?

This is a shell script with bash commands. Such scripts can be used to achieve specific tasks.

.sh file is a script programmed for bash, a type of Unix shell. It contains instructions written in the Bash language and can be executed by typing text commands within the shell’s command-line interface.
To make .sh file executable :
chmod +x /path/file.sh
To run .sh file :
./file.sh

3 Likes