DISQUS

Tech-Recipes: Extract a gzip compressed tar archive in Linux | Linux | Tech-Recipes

  • bofh468 · 5 years ago
    Another useful switch is -j for handling bzip2 compression. To do the same as above for a bzip-compressed tarball:


    tar xjf filename.tar.bz2

  • barretj · 4 years ago
    another usefull tar command is this:

    tar czvf tarball.tar.gz /tmp/tarball

    this will tar and gzip the directory /tmp/tarball into the file tarball.tar.gz
  • santhosh · 5 months ago
    i got the following error when i extracted.
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors.
    Plz suggest any way to extract in linux?
  • smeezekitty · 2 months ago
    santhosh are you sure its not a bzip not gzip