Results 1 to 4 of 4

Thread: How to tar a .gz folder

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    How to tar a .gz folder

    Hello friends,

    I uploaded a .sql dump of a DB and need to extract it.Unfortunately the code does not seems to be working

    Code:

    tar -zxvf file.sql.gz

    So what am asking here is that what is the command for doing this


    many thanks..as always

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to tar a .gz folder

    In order to compress a file or folder do this command.in this instance,I am tarring my web directory:

    The Command should look like some thing:

    tar -pczf web.tar.gz web/

    Now to untar the same command:

    tar xvfz web.tar.gz

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: How to tar a .gz folder

    Did you got it in your Home Folder? Extract it to a folder. Go into the folder. Click on the Shell Script that says Firefox underneath. It should begin this way:
    gunzip <filename.tar.gz>
    tar xvf <filename.tar>
    ./configure

    and making the install

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: How to tar a .gz folder

    My learning is that .gz usually just denotes gzip. .tar.gz is for a file that was tarred and gzipped.I think .tar.gz and .tgz are two interchangeable extensions for the same file format - a gzipped tar file. So changing the name of the file should not be an issue.You may try alternative way of gunzip file.sql.gz

Similar Threads

  1. Replies: 2
    Last Post: 17-02-2011, 11:21 AM
  2. Windows 7: Grouping folder by initial letter of folder
    By Dinkar P in forum Operating Systems
    Replies: 3
    Last Post: 23-01-2011, 07:52 PM
  3. Replies: 4
    Last Post: 03-01-2011, 02:38 AM
  4. Replies: 2
    Last Post: 27-02-2009, 01:23 PM
  5. wpdnse folder appears automatically in temp folder
    By Charlie R in forum Windows XP Support
    Replies: 2
    Last Post: 18-11-2006, 09:09 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,714,130,936.33897 seconds with 16 queries