Opening SHAR Files

The SHAR file type is primarily associated with Bourne shell.

SHARFile Extension SHAR
File extension: SHAR
File type:  executable shell script

What is an SHAR file

SHAR files mostly belong to Bourne shell. SHAR files are shell archive files used on Unix systems. They are plain text scripts that contain shell commands to recreate and extract a set of files.
When you run a SHAR file in a Unix shell (for example, using GNU bash), the script will recreate the files and may even rebuild directory structures.
Key aspects include:
  • Script-based archive: These are not binary archives but text files with commands to copy data.
  • File bundling: They package multiple files into one file for easy distribution.
  • Execution: You typically set execute permissions with a command like 'chmod +x filename.shar' and then run the file.
  • Compressed variants: Some SHAR files are compressed; for more on this variant, see Wikipedia.
  • How to open an SHAR file

    You need a suitable software like Bourne shell to open an SHAR file. Without proper software you will receive a Windows message "How do you want to open this file?" or "Windows cannot open this file" or a similar Mac/iPhone/Android alert. If you cannot open your SHAR file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a SHAR file directly in the browser:. Just drag the file onto this browser window and drop it.

    Online SHAR Text Viewer

    Choose your .shar file to view

    Read our privacy guarantee in Filext’s terms and privacy policy

    Please allow ads on our site

    This helps us keep our servers running. Then re-upload your file to view it.

    Click here to see how to disable the ad blocker for filext.com

    How to extract texts from SHAR files or capture a screenshot to PDF, JPG, DOCX, TXT, ...

    You can extract texts from SHAR file or capture a preview screenshot using our online SHAR file viewer:
    1. Just click the "Choose your .shar file to view" button on this page.
    2. Your SHAR file will then be displayed in the browser.
    3. Now click on "Save as..." at the top of the page.
    4. Then choose the file format (e.g. JPG, PDF, DOCX, TXT, ...) you want.
    5. Your file will be converted and downloaded.

    Programs that open and convert SHAR files:

    1. Bourne shell
      See the previous paragraphs to learn more about the main application. SHAR files are often referred to as Bourne shell executables because this type of file is primarily created or used by this software.
    2. UNIX
      A self-extracting archive that uses the Bourne shell (sh). Typically lower case on *nix systems. The Mime types used with this association are: application/x-shar, application/x-sh. This file format is classified as Archive.
    3. Unix Shar Archive (Unix Shar Archive) by Makeself
      SHAR files allows you to easily and conveniently transfer file archives by simply running the shell script which is self-extracting. The SHAR file runs itself to extract data that it contains. It is mainly used on UNIX-based systems. SHAR stands for SHell ARchive and it is an open format file. The SHAR file could be in plain text format and this has both advantages and disadvantages. The first SHAR utility is credited to have been written by James Gosling.

    SHAR file format details:

    Each file has a definite file format, that is, how the stored data is arranged in the file. Often, the file format can be deduced from the file extension or the initial bytes (called the signature). Frequently, however, one file extension is used by different programs for different file formats, and one file format for different file extensions. Knowledge is power - this also applies when dealing with unknown or faulty files. In the following you will find our evaluation of the SHAR files:

    SHAR is seldom used as a file extension and is used by a few programs, each with its own file format. However, the following two file formats are common:

    All other SHAR files (25%) have different formats, often e.g. This. If you want to find out what your SHAR file contains, drag and drop it onto this page.

    Technical Data for SHAR File Extension

    File classification:
    Executable
    Related files:

    The following listing is compiled from the database produced by the 'Associate This!' program, selected data from the main FILExt database and file extension information submitted by users.

    ProgramID: ZipZag.shar
    EXEFile: %ProgramFiles%\ZipZag\zipzag.exe %1


    an shar executable shell script is a special file format and should only be edited and saved with the appropriate software.

    How to solve problems with SHAR files

    • Associate the SHAR file extension with the correct application.
    • Update your software that should actually open executable shell scripts. Because only the current version supports the latest SHAR file format. Search, therefore, e.g. on the manufacturer website after an available Bourne shell update.
    • To make sure that your SHAR file is not corrupted or virus-infected, get the file again and scan it with Google's virustotal.com.
    • Click here to open your .SHAR file online - secure, fast, and no downloads needed.
    Drop here
    View another file
    SHAR file viewer SHAR file description