219 votes
SH File - What is an .sh file and how do I open it?
Learn about .SH files and view a list of programs that open them.
Diller
Genel Bakış
What is an SH file? An SH file is a script that can be run with the Bash Unix shell . It contains instructions written in the Bash command language. Users can execute the commands an SH file contains by calling the file in a Bash shell.
More Information SH file open in Microsoft Visual Studio Code 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 .
MacVim 7.2 Icon
Gezinme
Previous / Next
In-Depth
.SH File Extension
2 file types use the .sh file extension.
Bash Shell Script
| Developer | N/A |
| Popularity |
3.9 | 219 Votes |
NEW: Open your .SH file online with File Helper . View Online
What is an SH file?
An SH file is a script that can be run with the Bash Unix shell . It contains instructions written in the Bash command language. Users can execute the commands an SH file contains by calling the file in a Bash shell.
More Information
SH file open in Microsoft Visual Studio Code
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
You can open an SH file and view or edit the script it contains in Microsoft Notepad (Windows), Apple TextEdit (Mac), Vim (Linux), or any other text editor .
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
Sort
Pricing
Program Name
Platform
Reset
X
Windows
File Viewer Plus
—
Get it from Microsoft
Free +
gVim
Free
Notepad++
Free
GNU Bash
Free
Cygwin
Free
Git BASH
Free
Any text editor
Mac
Apple Terminal
Included with OS
iTerm
Free
MacVim
Free
GNU Bash
Free
Any text editor
Linux
GNU Bash
Free
Vim
Free
Any text editor
Web
FileHelper.com
Free
Android
File Viewer for Android
Free +
Termux
Free
Chrome OS
Termux
Free
Category: Executable Files
Updated: September 6, 2022
Unix Shell Archive
| Developer | N/A |
| Popularity |
3.5 | 41 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.
More Information
Shar files also use the .SHAR file extension.
Programs that open SH files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
ZipZag
Linux
unshar
Category: Compressed Files
Updated: September 18, 2007