You may encounter with a .sh file several times when you try to download an application/software for linux. .sh files are shell script files for Unix-based operating systems. There are 2 ways in which it can be executed. One is by using the terminal and another is by using the GUI of the operating system.
1. Using Terminal
Step 1: Open Terminal
Step 2: For giving permission to execute your script, Type this in the terminal. Remember to give your file path.
chmod +x /path/to/yourscript.sh
Step 3: Execute the script. Just point your file location.
2. Using GUI
Step 1 : Locate the file in your system.
Step 2 : For giving permission to execute your script,
Right-click on the fileSelect Properties
Select Allow executing file as a program Once its done, close the Properties window Step 3: Double-click the file. A dialog will pop up giving you the option to run the script in a terminal. Go with it. It’s all done. Note: Not all files are safe to install. Verify the original source before executing these type of files.