Unzip *.tar.gz files

I am using windows but I need to unzip a file demo.tar.gz
Does anybody help me accomplish this...

Winzip will do this for you

Similar Messages

  • Client to unzip tar.gz file on remote webserver

    I'm not sure if this is the right place to post my question - sorry.
    I was wondering if there is a mac client program to assist in unzipping a tar.gz file on a remote web server.
    I know that it can be done using putty, but was hoping that there might be a "cleaner and more usable" solution.
    TIA
    -jP

    Mac has a build-in unzipper.
    Just double-click the file.
    In case itt does not expand, select the file and type Cmd-I.
    Then at +Open with,+ navigate to:
    /System/Library/CoreServices/
    and choose BOMArchiveHelper
    Click +Always open with this application+.
    There's more on the internet [unzip .gz osx|http://www.google.com/search?q=unzip%20.gz%20os%20x]

  • Automatically decompress *.tar.gz files to *.tar within Windows 2008 R2 Enterprise?

    Is it possible to have any and all *.tar.gz files that are dumped to a certain folder automatically decompressed/unzipped to *.tar in order to be processed by an sFTP job?  Thanks for any help you may be able to provide.

    Hi Señor SIEM,
    If you want to unzip files in powershell, this needs the thrid-party unzip application to run the powershell script, for more detailed information, please refer to this thread:
    powersell How to Unzip a file and copy it to specific location with 7zip?
    I hope this helps.

  • Cannot untar a tar zip file

    I'm initially a linux user, now trying to chnage to solaris server. I found a problem untaring a tar zip file. There is no command 'gzip' or 'gunzip' in my solaris server. And for the tar command, there is no option '-z'. So, how can I untar and unzip a tar zip file?

    Hi ,
    What Solaris Version you are using? On www.sunfreeware.com site, once you choose correct operating system version you may see all utilities on right side at bottom. There are some in pkgadd format.
    e.g gzip 1.2.4-sol26-sparc-local is in pkgadd format for Solaris 2.6.
    You will find similar files for Sparc/Intel for all vesions.
    Download same.
    #pkgadd -d gzip 1.2.4-sol26-sparc-local
    This will install all you needed. I hope this will help you.
    Thanks,
    SdD

  • BomArchiver not working anymore for tar.gz files

    I don't know what happened to my system, but I can't expand tar.gz files anymore using BomArchiver. The "Expand window" flashes half a second and disappears.
    I check all Permissions but no chance.
    Then i opened a terminal window pointing to the gzip file and discovered that, each time i try to unzip the file, a new invisible folder, name .BAHxxxx (where xxxx is a random number) containing an invalid file. Group for that folder is wheel with Read Only.
    Any help ?

    Yes, at the moment 14 people have read your message but evidently no one, including me, actually knows the nature of the problem, let alone a solution. If you have Console (it is in your Utilities folder) running in the background, does it show an error message when the failure occurs?
    Francine
    Francine
    Schwieder

  • Where is the xsqlservlet_v9****.tar.gz file?

    I'm looking to install XSQL Servlet support on Oracle 8.1.7.
    I've just downloaded the latest XDK for Java, since technet
    states the XSQL Servlet components are included in it. After
    uncompressing the download and reviewing the included
    documentation, I expected to find a xsqlserlvet_v9_0_1_0.tar.gz
    file included somewhere in the directory structure. Nope, not
    there...so either:
    (1). The included docs are wrong/outdated - I'm looking
    at "Downloading and Installing the XSQL Servlet".
    (2). My expectation is wrong OR missing an important step.
    (3). I've downloaded the wrong file.
    Any ideas? Thanks.

    Another observation on the release notes included with the
    download...
    In reviewing the section "Software Included in the XSQL Servlet
    Distribution" of the "Oracle XSQL Pages and the XSQL Servlet"
    Release Notes, it mentions the following files:
    .\xsql\lib\xmlparserv2.jar
    .\xsql\lib\xsu12.jar
    .\xsql\lib\classes12.jar
    .\xsql\lib\sax2.jar
    I don't see the .\xsql\lib directory structure in what I
    downloaded??? I see xmlparserv2 and xsu12 in the ./lib
    directory, but classes12 and sax2 are no where to be found.
    I realize I can download classes12 and sax2 from elsewhere, but
    I still have this strange feeling that I'm missing something
    here...

  • Problem in unzipping the zip files

    Hi,
    I have created a program to unzip the zip files. But when i try to zip it is creating the zipped files outside the folder where it is to be zipped.
    what is wrong with my code.
    if the zip file is migration.zip
    if the path inside the zip file shows
    and the path inside says this
    /codebase/scripts/
    it would create migration folder and create codebase folder outside the migration folder
    what is wrong with my code
    //Unzip the zip files to the folder with their name
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FilenameFilter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Enumeration;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipFile;
    // Getting the path to find the type of files
    public class zipper implements FilenameFilter{
              String ext;
              public zipper(String ext)
                   this.ext="." + ext;
              public boolean accept(File dir,String name)
                   return name.endsWith(ext);
    public static void main(String args[]) throws IOException
              try
                        String dir = "D:/a/";
                        File f2 = new File(dir);
                        FilenameFilter fn= new zipper("zip");
                        String ss[]=f2.list(fn);
                   for ( int j = 0; j < ss.length; j++)
                        System.out.println(" Extracting ...." + ss[j]) ;
                        String zipFile = dir + ss[j];
                        ZipFile zf = new ZipFile(zipFile);
                        Enumeration entries = zf.entries();
                        String directoryName = zf.getName();
                        directoryName = directoryName.substring(0, (directoryName.indexOf(":" + File.separator) + 2));
                             String folderName = zf.getName();
                             folderName = folderName.substring(0, folderName.lastIndexOf("."));
                             File file1 = new File(folderName);
                             //File file1 = new File(entries.getName());
                             file1.mkdir();
                   while (entries.hasMoreElements())
                             ZipEntry ze = (ZipEntry) entries.nextElement();
                             String path = directoryName + ze.getName() ;
                             String path1 = folderName + ze.getName();
                             //System.out.println(" : " + path);
                             if (ze.getName().endsWith("/"))
                                       File file = new File(path);
                                       file.mkdir();
                                       continue;
                                       //break;
                        BufferedReader bReader = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
         StringBuffer fileBuffer = new StringBuffer(" ");
         String line ;
                        while ((line = bReader.readLine()) != null)
                                  fileBuffer.append(line);
                                  fileBuffer.append("\r\n");
                                  //line = line + "\r\n";
                                  //byte[] b = new byte[line.length()];
                                  //b =line.getBytes();
                                  //out.write();
                        String fileData = fileBuffer.toString();
         File f1 = new File(path);
                        f1.createNewFile();
                        //FileOutputStream out = new FileOutputStream(folderName + "/" + ze.getName());
                        FileOutputStream out = new FileOutputStream(path);
                        long size = ze.getSize();
                        byte[] data1 = new byte[fileData.length()];
                        for (int i = 0; i < fileData.length(); i++)
                                  data1[i] = (byte) fileData.charAt(i);
         out.write(data1);
         out.close();
                        bReader.close();                         
                   } catch (Exception e)
                             e.printStackTrace();
    Thanks in Advance
    Avinash

    String path = directoryName + ze.getName();
    String path1 = folderName + File.separator+ ze.getName();
    File f1 = new File(path); // pass path1 instead of path
    f1.createNewFile();
    FileOutputStream out = new FileOutputStream(path); // pass path1 instead of path

  • Problem in Unzipping the zip file

    Hi
    I have created a program to unzip the zip files in the folder named after the zip file
    it is working well well when u try to zip zip files put in a directory
    i.e u create a folder name contents and put files into that and then zip it
    but when u directly create a zip file , without putting in a folder
    it creates the folder and zip the files outside the folder
    Another problem is that with the path
    for e.g. suppose the zip file name is contents and path should show
    contents/filename.txt but there are some other files whose path shows
    res/file.txt. In this case it creates a folder of res and put it outside the
    folder with the name of zip file
    I have pasted my code :
    //Unzip the zip files to the folder with their name
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FilenameFilter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Enumeration;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipFile;
    // Getting the path to find the type of files
    public class zipper implements FilenameFilter{
              String ext;
              public zipper(String ext)
                   this.ext="." + ext;
              public boolean accept(File dir,String name)
                   return name.endsWith(ext);
    public static void main(String args[]) throws IOException
              try
                        String dir = "D:/";
                        File f2 = new File(dir);
                        FilenameFilter fn= new zipper("zip");
                        String ss[]=f2.list(fn);
                   for ( int j = 0; j < ss.length; j++)
                        System.out.println(" Extracting ...." + ss[j]) ;
                        String zipFile = dir + ss[j];
                        ZipFile zf = new ZipFile(zipFile);
                        Enumeration entries = zf.entries();
                        String directoryName = zf.getName();
                        directoryName = directoryName.substring(0, (directoryName.indexOf(":" + File.separator) + 2));
                             String folderName = zf.getName();
                             folderName = folderName.substring(0, folderName.lastIndexOf("."));
                             File file1 = new File(folderName);
                             //File file1 = new File(entries.getName());
                             file1.mkdir();
                   while (entries.hasMoreElements())
                             ZipEntry ze = (ZipEntry) entries.nextElement();
                             String path = directoryName + ze.getName() ;
                             String path1 = folderName + ze.getName();
                             //System.out.println(" : " + path);
                             if (ze.getName().endsWith("/"))
                                       File file = new File(path);
                                       file.mkdir();
                                       continue;
                                       //break;
                        BufferedReader bReader = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
         StringBuffer fileBuffer = new StringBuffer(" ");
         String line ;
                        while ((line = bReader.readLine()) != null)
                                  fileBuffer.append(line);
                                  fileBuffer.append("\r\n");
                                  //line = line + "\r\n";
                                  //byte[] b = new byte[line.length()];
                                  //b =line.getBytes();
                                  //out.write();
                        String fileData = fileBuffer.toString();
         File f1 = new File(path);
                        f1.createNewFile();
                        //FileOutputStream out = new FileOutputStream(folderName + "/" + ze.getName());
                        FileOutputStream out = new FileOutputStream(path);
                        long size = ze.getSize();
                        byte[] data1 = new byte[fileData.length()];
                        for (int i = 0; i < fileData.length(); i++)
                                  data1[i] = (byte) fileData.charAt(i);
         out.write(data1);
         out.close();
                        bReader.close();                         
                   } catch (Exception e)
                             e.printStackTrace();
    Thanks in Advance
    Avinash

    String path = directoryName + ze.getName();
    String path1 = folderName + File.separator+ ze.getName();
    File f1 = new File(path); // pass path1 instead of path
    f1.createNewFile();
    FileOutputStream out = new FileOutputStream(path); // pass path1 instead of path

  • Jar File for uncompress *.tar.Z-File

    hello,
    i'm locking for a jar -file to uncompress *.tar.Z files but i cant't found souch a jar file.
    do you know where i can download a jar-file wich suppose to extract a *.Z-Archiv? You do you know how i can extract a *.tar.Z-Archiv?
    Torsten

    hello,
    i'm locking for a jar -file to uncompress *.tar.Z files but i cant't found souch a jar file.
    do you know where i can download a jar-file wich suppose to extract a *.Z-Archiv? You do you know how i can extract a *.tar.Z-Archiv?
    Torsten

  • Unzipping a jar file

    how do Unzip a jar file?

    You can unjar a file giving
    " jar -xvf filename.jar " at the command prompt if u don't have a jar.exe please try using winzip/unzip..
    ebistro

  • How to un tar required file?

    Hello All,
    I used TAR backup as below.
    tar -cvf test01.tar /uo1/oracle/bin/java
    its created testo1.tar file.
    Now i wanted to untar or recovery only one file instaed of whole tar file.
    for e.g: i wanted to recovery only file under bin folder callled config.
    how to un tar file?
    Any help will be appreciated. Thanks
    D

    You can look inside the tar using the 't' command:
    tar tvf file.tar And you can untar only one file with:
    frits@gateway:~/download$ mkdir t
    frits@gateway:~/download$ cd t
    frits@gateway:~/download/t$ touch a
    frits@gateway:~/download/t$ touch b
    frits@gateway:~/download/t$ tar czf ab.tgz *
    frits@gateway:~/download/t$ ls
    a  ab.tgz  b
    frits@gateway:~/download/t$ tar tzf ab.tgz
    a
    b
    frits@gateway:~/download/t$ rm a
    frits@gateway:~/download/t$ ls
    ab.tgz  b
    frits@gateway:~/download/t$ tar xzf ab.tgz a
    frits@gateway:~/download/t$ ls
    a  ab.tgz  b
    frits@gateway:~/download/t$

  • Extract A tar.gz file

    Ok guys,
    I have a program that extracts the contents of a tar.gz file. Right now it does extract one of the files and then throws an error:
    com.ice.tar.InvalidHeaderException: bad header in block 9 record 10, header magi
    c is not 'ustar' or unix-style zeros, it is '1141115144674854', or (dec) 114, 11
    1, 51, 44, 67, 48, 54
            at com.ice.tar.TarInputStream.getNextEntry(Unknown Source)
            at Extract_TAR_GZ_FILE.untar(Extract_TAR_GZ_FILE.java:37)
            at Extract_TAR_GZ_FILE.run(Extract_TAR_GZ_FILE.java:55)
            at Extract_TAR_GZ_FILE.main(Extract_TAR_GZ_FILE.java:67)
    bad header in block 9 record 10, header magic is not 'ustar' or unix-style zeros
    , it is '1141115144674854', or (dec) 114, 111, 51, 44, 67, 48, 54 The class that extracts the files:
    import java.io.*;
    import com.ice.tar.*;
    import javax.activation.*;
    import java.util.zip.GZIPInputStream;
    public class Extract_TAR_GZ_FILE {
         public static InputStream getInputStream(String tarFileName) throws Exception{
          if(tarFileName.substring(tarFileName.lastIndexOf(".") + 1, tarFileName.lastIndexOf(".") + 3).equalsIgnoreCase("gz")){
             System.out.println("Creating an GZIPInputStream for the file");
             return new GZIPInputStream(new FileInputStream(new File(tarFileName)));
          }else{
             System.out.println("Creating an InputStream for the file");
             return new FileInputStream(new File(tarFileName));
         private static void untar(InputStream in, String untarDir) throws IOException {
           System.out.println("Reading TarInputStream... (using classes from http://www.trustice.com/java/tar/)");
          TarInputStream tin = new TarInputStream(in);
          TarEntry tarEntry = tin.getNextEntry();
          if(new File(untarDir).exists()){
               while (tarEntry != null){
                  File destPath = new File(untarDir + File.separatorChar + tarEntry.getName());
                  System.out.println("Processing " + destPath.getAbsoluteFile());
                  if(!tarEntry.isDirectory()){
                     FileOutputStream fout = new FileOutputStream(destPath);
                     tin.copyEntryContents(fout);
                     fout.close();
                  }else{
                     destPath.mkdir();
                  tarEntry = tin.getNextEntry();
               tin.close();
          }else{
             System.out.println("That destination directory doesn't exist! " + untarDir);
         private void run(){
              try {               
                   String strSourceFile = "G:/source/BROKERH_20080303_A2008_S0039.TAR.GZ";
                   String strDest = "G:/source/Extracted Files";
                   InputStream in = getInputStream(strSourceFile);
                   untar(in, strDest);          
              }catch(Exception e) {
                   e.printStackTrace();          
                   System.out.println(e.getMessage());
         public static void main(String[] strArgs) throws IOException{
              new Extract_TAR_GZ_FILE().run();
    }The file I tested with can be found here:
    http://www.yourfilehost.com/media.php?cat=other&file=BROKERH_20080303_A2008_S0039.TAR.GZ
    Any help? Thanks a bunch.

    I fixed the problem. It was the ftp transfer of files program which wasn't set to BINARY mode. I edited that program and then rerun the above class and boom.. It worked.
    Thank you guys for responses.Great! Glad you got it working.
    ~

  • Unzip multiple bzip files thru powershell

    Hello there-
    I have 50 directories. Each directory has 10 sub directories in which there are 300 bz2 files. I would like to unzip them thru bzip program. Is it possible to do so with powershell/batch/cmd line script?
    Dir1>Subdir1>*.bz2
          >Subdir2>*.bz2
          >Subdir10>*.bz2
    Dir2>Subdir1>*.bz2
          >Subdir2>*.bz2
          >Subdir10>*.bz2
    Thanks,
    Ben

    Hi,
    To unzip files, I would like suggest you refer below code, those code is to find all current location zip files and unzip them to the current location:
    $shell=new-object -com shell.application
    $CurrentLocation=get-location
    $CurrentPath=$CurrentLocation.path
    $Location=$shell.namespace($CurrentPath)
    $ZipFiles = get-childitem *.zip
    $ZipFiles.count | out-default
    foreach ($ZipFile in $ZipFiles)
    $ZipFile.fullname | out-default
    $ZipFolder =
    $shell.namespace($ZipFile.fullname)
    $Location.Copyhere($ZipFolder.items())
    If you want to unzip many location files, we could use get-childitem to get all of them and saved in a variable.
    For more details, please refer to the below link:
    PowerShell script to unzip many files
    http://www.techiebirdsnest.com/2009/01/powershell-script-to-unzip-many-files.html
    Hope this helps.
    Regards,
    Yan Li
    Yan Li
    TechNet Community Support

  • Unzip window jpeg files?

    What are the steps to take to unzip incoming jpeg files?  These jpeg files are sent from Windows based PC.

    The UnArchiver
    http://theunarchiver.googlecode.com/files/TheUnarchiver2.7.1.zip

  • Unzip a zipped file?

    How can I unzip a zipped file with java ?

    I presume you've read the API of [url http://java.sun.com/j2se/1.4.1/docs/api/java/util/zip/ZipFile.html]ZipFile?

Maybe you are looking for

  • IPod Touch 2.1 Not Backing Up

    I have a first generation 8GB iPod Touch running the latest firmware 2.1. I decided to test Apple's claims for "faster backups" and so I decided to manually back up by right clicking on my iPod in the iTunes sidebar and click "Back Up." However, when

  • Brand new iPod Nano 4gb. Not responding after being charged for a while.

    Hi guys. I got a replacement for my Nano today. It is brand new. The guy at the Apple Centre said to fully charge it before use, then fully discharge it. I've had the iPod plugged in for a fair while now, and it doesn't seem to be getting charged. Th

  • Embedded SQL related precompiler

    how to add the precompiler C/C++ tools in Oracle 10g std one edition server as well as client to implement embedded sql queries for creation,deletion , upation and selection of tables?

  • How do i add crop marks in Photoshop????

    Only been using Photoshop for a few months and for an ad i've designed they need 'crop marks' added. How do i do this???

  • Error reading MimeBodyPart

    I am trying to read all attachments sent in a mail and getting error java.io.IOException: Error in encoded stream, got 3 for few emails. The code is like OutputStream os = new BufferedOutputStream(new FileOutputStream(filepath));