This Season
 

How to Identify Different Types of Compression Methods in UNIX

There are a few different types of compression methods in UNIX. This article will show the basic types and how to work with them, including the commands to use. In all cases, compress the files by following the appropriate compress command shown below with the file name. Uncompress them by typing the appropriate uncompress command followed by the file name.

Related Searches:
    Difficulty:
    Moderately Challenging

    Instructions

      • 1

        For files with a .gz filename extension, the file was compressed with GNUzip. Use the gunzip command to uncompress, and gzip to compress.

      • 2

        For files with a .zip extension, the commands are unzip and zip. If you want to use a compression method compatible with Microsoft Windows, Apple Mac and other operating systems, this is the best one to use.

      • 3

        Older style UNIX compressed files can be identified by the .Z file name extension. Commands to use for this format are compress and uncompress.

      • 4

        For files with a .bz2 extension, the file was compressed using the bzip2 command. To uncompress a .bz2 file, the command to use is bzip2 -d.

      • 5

        Files with a .tgz extension are simply tar (tape archive) files compressed with gzip. First use gunzip to uncompress, then tar xvf to unpack the archive.

      • 6

        Files with a .tbz2 extension are simply tar files compressed with bzip2. First use bzip2 -d to uncompress, then tar xvf to unpack the archive.

    Tips & Warnings

    • Compression saves greatly on disk space. Large files and archives should be compressed for efficient storage if they won't be used very frequently.

    • Sometimes the unzip utility you pick will not work due to an incorrect file name extension. Try copying the compressed file to a more standard file name extension, then attempt to uncompress.

    • Not all UNIX systems have every file compression utility installed. If this is the case, attempt to uncompress on a different system, or get the compression utilities you need from the UNIX vendor.

    • Some unsafe UNIX tar commands will unpack the tar in an absolute location, relative to root, which can be disastrous. Your entire operating system can be overwritten. Before unpacking a tar file, test the location it will unpack to by first issuing the command tar tvf and observing where the files will be created.

    Related Searches

    Read Next:

    Comments

    You May Also Like

    • How to Identify an RG6 Cable

      Identifying an RG6 cable can be daunting. When faced with a mob of cables on the side of your house, it can...

    • Types of Compression Hose

      Types of Compression Hose. Compression hose, or compression stockings, facilitate the proper circulation of blood and lymph fluid in the legs. They...

    • About Different Types of Operating Systems

      A computer operating system (OS) is a software program that manages hardware and software and acts as an interface between the user...

    • Types of Compression Fittings

      According to ThePipeFittings.com, compression fittings attach pipes to fixtures or other pipes in situations where the joined pieces will remain stationary, such...

    • Types of Compression Boots

      Types of Compression Boots. Compression is used to treat many circulation problems, including edema, varicose veins and insufficient circulation. There are many...

    • How to Identify Codec

      A codec is a small piece of software that will allow playback of video or audio of a specific type. The selection...

    • Different Types of Interview Techniques

      Interviewing is a craft, but learning how to interview takes time and comes with experience. Although there are clearly defined outcomes for...

    • How to Identify Different Types of Faucets

      There are four different types of faucets: ceramic disk, compression, ball and cartridge. These four faucets are available in a variety of...

    • WinRAR Compression Methods

      WinRAR Compression Methods. WinRAR is a program which allows you to both create and extract compressed folders. The software is designed to...

    • How to Determine the Best Brand of Compression Stockings

      Compression stockings are similar to support hose. They may also be called Ted hose. According to the National Heart, Lung and Blood...

    • What Is File & Folder Compression?

      Data files can require a lot of hard disk space. However, file compression utilities remove empty space from those files and perform...

    • How to Identify Basic Plumbing Valves

      There are all sorts of plumbing valves that do a variety of different jobs. If you want to identify the basic plumbing...

    • Types of File Compression

      Types of File Compression. Computer files can sometimes become too large for easy storage and transfer, which is especially a problem for...

    • How to Identify Progressive JPEGs

      The JPEG is a digital image file format. It uses the lossy compression method to allow users to achieve 10:1 compression with...

    • How to Tighten Compression Fittings

      Compression fittings are commonly used where high-pressure is an issue. A compression fitting differs from a standard fitting because of its compression...

    • How to Gzip File Compression in Unix

      Gzip is a Unix utility program to compress files. Files compressed using Gzip are replaced by a smaller file with the same...

    • How to Unzip a Z File in Unix

      "Z" files consist of any number of files that have been compressed together into one file using the Unix/Linux "compress" utility. Compressing...

    • How to Compress Files in Unix

      The Unix operating system has multiple commands for file compression. Three of the commands are "compress," "pack" and "gzip." The "compress" and...

    • What is LZW Compression?

      LZW stands for Lempel-Ziv-Welch, the names of the three creators of this data compression technique. Data compression is the process of reducing...

    • How to Open a Zip File in Unix

      Opening Zip files in Unix is a multi-step process. Commands entered at the command line in Unix are used to extract zipped...

    Follow eHow

    Related Ads