Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Dec 2004
    Location
    Dunedin
    Posts
    2,204

    Default .TGZ Un compressing

    What is the command for uncompressing a .tgz file in Linux just to the directory that contains it.


    Edit> Wrong Forum
    Last edited by Dannz; 23-03-2005 at 04:47 PM.

  2. #2
    Pedant and proud of it
    Join Date
    Dec 2004
    Location
    Christchurch
    Posts
    6,047

    Default Re: .TGZ Un compressing

    tar xvzf file.tgz
    x for eXtract
    v for verbose (say what it's doing)
    z for uncompress (gzip, j for Bz2 compression?)
    f for filename (this option must be last because it has an argument -- the name)

    If it is set up with a directory name component in all the filenames, it will put them in that path. You can extract each file in turn, (do "tar tvzf" to find the names) and they will go to the current directory. There is almost certainly some way to overrride included file paths ... man tar ... but it's not something I've needed.

Similar Threads

  1. Compressing a Document
    By Poppa John in forum PressF1
    Replies: 8
    Last Post: 04-01-2005, 01:02 PM
  2. Compressing files
    By in forum PressF1
    Replies: 3
    Last Post: 11-12-2001, 08:51 PM
  3. Compressing BIG files
    By in forum PressF1
    Replies: 0
    Last Post: 16-06-2000, 11:05 PM
  4. compressing files
    By in forum PressF1
    Replies: 0
    Last Post: 06-10-1998, 04:55 PM
  5. compressing files
    By in forum PressF1
    Replies: 0
    Last Post: 06-10-1998, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •