Results 1 to 4 of 4

Thread: Extract tar files in Linux

  1. #1
    Join Date
    Jan 2009
    Posts
    51

    Extract tar files in Linux

    I am trying to learn Linux Operating System and after a short research i came to know Ubuntu is the easiest to learn. I so installed Ubuntu 9.04. Well i came to know about "tar" files. What i know is, It is a type of Archive File. Can anyone help me about this archive and softwares that can extract this type of archive on Ubuntu Linux. Thanks!

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

    Re: Extract tar files in Linux

    The program tar, originally stands for tape archive, is useful for archiving files. It is a program and not just a command. It is included with all the Linux Distributions. It is the native program which is a command line interface. You can use the single command "tar" to create archive, view its content and also to extract the files from tar archive.

  3. #3
    Join Date
    Jan 2009
    Posts
    51

    Re: Extract tar files in Linux

    Thanks for the description. But can you provide me with some help to use the tar progarm/command? Would be really helpful. Does this program runs with all linux distributions similarly or there are changes for different linux distributions? Thanks!

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

    Re: Extract tar files in Linux

    Note : A ".tar" file is not a compressed files, it is just a collection of files within a single file. If the file is a ".tar.gz" or ".tgz" then its a collection of many files in a single file which is compressed. The file ".tgz" or ".tar.gz" represents a tarball file.

    Creating a tar file :

    Code:
    tar -cvzf file1.tar file2.txt
    c : to create archive
    v : verbose mode output
    z : compress file
    f : specify file or file group

    You can use wild card characters to tar a group of files by *.[file extension]

    Example :
    Code:
    tar -cvzf file1.tar *.txt *.doc
    The above command will create (c) verbose mode (v) tar archive and compress (z) files specified (f) in the command. All the .txt and .doc files will be archived.

    Extracting the files from a tar file :

    To extract an uncompressed tar file :

    Code:
    tar -xvvf file1.tar
    This will Extract the files in tar files in the current location.

    To extract a compressed tarball file :

    Code:
    tar -xvvzf myfile.tar.gz

Similar Threads

  1. Unable to extract .exe files from .rar file
    By GunPower in forum Windows Software
    Replies: 6
    Last Post: 25-06-2011, 09:22 PM
  2. Extract DMG files
    By superdave1984 in forum Windows Software
    Replies: 3
    Last Post: 26-10-2009, 08:50 AM
  3. How do i extract .zip files on Linux
    By Mind It in forum Windows Software
    Replies: 3
    Last Post: 24-09-2009, 01:21 PM
  4. How can i extract multiple RAR files
    By Common in forum Windows Software
    Replies: 3
    Last Post: 03-07-2009, 11:49 PM
  5. How to extract images from PDF files ?
    By Bilal in forum Windows Software
    Replies: 3
    Last Post: 14-04-2009, 12:11 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,870,626.23469 seconds with 17 queries