Bash Shell Script
3.9 | 201 Votes
What is an SH file?
Bash, or Bourne-Again SHell, is a Unix shell that replaced the Bourne shell (thus Bash's full name). Many Linux distributions include the Bash shell. Bash was also previously macOS's default login shell. (It has since been replaced by zsh. MacOS users can still manually set their shell to Bash.)
With the Bash shell, users can execute default Bash commands or execute scripts written in the Bash command language. Bash scripts are typically saved as SH files.
Some other Unix shells, such as Bourne, C shell, and Korn, also use scripts saved as SH files. One way to recognize a Bash script is to look for the string #!/bin/bash in the script's first line. Most Bash SH files include this string, which tells the shell that the script the file contains should be executed using the Bash interpreter.
How to open an SH file
To execute the script an SH file contains, open the Bash shell, navigate to the directory that contains your file, and enter bash YourFileName.sh.
Programs that open SH files
Unix Shell Archive
3.5 | 39 Votes
Self-extracting "shar" archive that contains files and a shell script with instructions on how to extract the contents; created with the Unix shar utility program; typically only usable on Unix computers with the Bourne shell installed.
Shar files also use the .SHAR file extension.