What is MIME type "application/x-sv4cpio"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

The MIME type application/x-sv4cpio identifies a specific archive format. It uses the System V Release 4 CPIO structure to bundle files together. This format is common on Unix systems.

Files using this format may be named with the extension SV4CPIO.

For additional technical details, see more on the CPIO archive format.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/x-sv4cpio    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/x-sv4cpio">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/x-sv4cpio');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is an application/x-sv4cpio file?

This MIME type represents a System V Release 4 (SVR4) CPIO archive. It is a specific variation of the standard CPIO format used on Unix-like systems to bundle files and preserve metadata like permissions and ownership, often seen in older software distribution packages or system backups.

How do I open an .sv4cpio file on Linux?

You can extract these files using the standard cpio command line utility. To extract files while preserving directories, use the command cpio -idv < filename.sv4cpio. Ensure your system has the cpio package installed.

Can I open application/x-sv4cpio files on Windows?

Windows does not support CPIO archives natively, but third-party tools like 7-Zip or PeaZip can often open and extract them. If these tools fail due to the specific SVR4 header, you may need to use a Linux environment (like WSL) to handle the file.

How do I configure Apache to serve .sv4cpio files?

To ensure Apache serves these files with the correct MIME type, add the following line to your .htaccess file or main configuration: AddType application/x-sv4cpio .sv4cpio. This helps the client identify the specific archive format immediately.

What is the difference between application/x-cpio and application/x-sv4cpio?

application/x-cpio is the generic MIME type for any CPIO archive, whereas application/x-sv4cpio explicitly identifies the archive as using the System V Release 4 header format. Using the specific MIME type is preferred when the consuming software relies on the SVR4 structure.

How do I create an SVR4 CPIO archive?

On a Unix-based system, you can create this specific format using the -H flag with the cpio command. For example, run find . | cpio -o -H sv4 > archive.sv4cpio to package the current directory into an SVR4-compliant archive.

Why does my browser download the file instead of displaying it?

Browsers cannot render binary archives like application/x-sv4cpio. Since the content is not text, image, or video, the browser defaults to downloading the file so the user can open it with a local application.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.