SH is a common Unix shell file extension, used by bash (Bourne-again shell). SH files store bash scripts and instruction written in bash language.
SH files are created using Unix tool shar. SH file are mainly used for scripts executed by Unix shell command line.
Bash is an interpreted command language and a free unix shell distributed under GNU license, used by default on many Linux and Mac OS X (macOS) systems. Most Unix-family systems support this shell. Bash replaced Bourne shell, hence the name – Bourne-again.
SH files can also be used for saving scripts for other shells, such as C-Shell, Korn Shell, or Bourne Shell.
The list that follows enumerates programs compatible with SH files, divided into 3 categories based on operating system on which they are available. Files with SH suffix can be copied to any mobile device or system platform, but it may not be possible to open them properly on target system.
Updated: 04/15/2022
Being unable to open files with SH extension can be have various origins. On the bright side, the most encountered issues pertaining to Bash Shell Script files aren’t complex. In most cases they can be addressed swiftly and effectively without assistance from a specialist. The list below will guide you through the process of addressing the encountered problem.
The main and most frequent cause precluding users form opening SH files is that no program that can handle SH files is installed on user’s system. This issue can be addressed by downloading and installing gVim or different compatible program, such as VMware Workstation, Adobe ExtendScript, NotePad++ text editor. On the top of the page a list that contains all programs grouped based on operating systems supported can be found. One of the most risk-free method of downloading software is using links provided by official distributors. Visit gVim website and download the installer.
If the problems with opening SH files still occur even after installing gVim, it is possible that you have an outdated version of the software. Check the developer’s website whether a newer version of gVim is available. Software developers may implement support for more modern file formats in updated versions of their products. The reason that gVim cannot handle files with SH may be that the software is outdated. All of the file formats that were handled just fine by the previous versions of given program should be also possible to open using gVim.
If the issue has not been solved in the previous step, you should associate SH files with latest version of gVim you have installed on your device. The method is quite simple and varies little across operating systems.
Change the default application in Windows
Change the default application in Mac OS
Should the problem still occur after following steps 1-3, check if the SH file is valid. It is probable that the file is corrupted and thus cannot be accessed.
If the file is infected, the malware that resides in the SH file hinders attempts to open it. It is advised to scan the system for viruses and malware as soon as possible or use an online antivirus scanner. If the SH file is indeed infected follow the instructions below.
If you obtained the problematic SH file from a third party, ask them to supply you with another copy. During the copy process of the file errors may occurred rendering the file incomplete or corrupted. This could be the source of encountered problems with the file. It could happen the the download process of file with SH extension was interrupted and the file data is defective. Download the file again from the same source.
Sometimes in order to access files user need to have administrative privileges. Switch to an account that has required privileges and try opening the Bash Shell Script file again.
If the systems has insufficient resources to open SH files, try closing all currently running applications and try again.
Latest versions of programs and drivers may help you solve problems with Bash Shell Script files and ensure security of your device and operating system. It may be the case that the SH files work properly with updated software that addresses some system bugs.
If you have additional information about the SH file, we will be grateful if you share it with our users. To do this, use the form here and send us your information on SH file.