Results 1 to 3 of 3

Thread: How to Compress/ decompress a file in linux

  1. #1
    Join Date
    Dec 2008
    Posts
    18

    How to Compress/ decompress a file in linux

    I am using Linux as an operating System. I want to some of the files to be Compress into a Zip files. But unfortunately I have forgotten how to compress the Zip files in Linux. Can anyone tell me what the command for compress /Decompress is?

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: How to Compress/ decompress a file in linux

    Normally in Linux, the Compression format is GZip (.Gz) format or Tarball (.Tar.gz).

    You need to type the Following Command for Compress/Decompress.
    • For Compress: zip-r filename.zip file_directory.
    • For Decompress: filename.zip unzip-d destination
    • For View content: unzip-v archive.zip

    (Where r indicates that the contents of the directory to be compressed as well as sub-directories.)

  3. #3
    Join Date
    Jan 2008
    Posts
    3,388

    Re: How to Compress/ decompress a file in linux

    There are another Compress/Decompress Also Available.

    Following is the code for gz(gzip)

    • For Compress in gz (gzip): gzip file-q (The file compresses it and rename it as "archive.gz")
    • Unzip : gzip-d archive.gz (The file unzip it and leave it as a "file")

    Note: gzip only compresses files, not directories.

Similar Threads

  1. need assistance to compress an excel 2010 file
    By Vento in forum Windows Software
    Replies: 5
    Last Post: 28-03-2012, 03:25 PM
  2. How to Decompress z01 file
    By WajidB in forum Windows Software
    Replies: 6
    Last Post: 31-05-2010, 03:40 PM
  3. How to compress .mdf file in SQL2000
    By Kaufman in forum Software Development
    Replies: 4
    Last Post: 14-02-2010, 03:29 AM
  4. Unable to compress a file
    By EULALIA in forum Windows Software
    Replies: 3
    Last Post: 13-05-2009, 11:56 PM
  5. Compress each file with automator
    By Ximen in forum Software Development
    Replies: 3
    Last Post: 21-04-2009, 01:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,553,820.16887 seconds with 17 queries