Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-31-2006, 02:26 AM   #1
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
When to use tar , gzip and tar+gzip ?


When should anyone use 1)only .tar ,
2)only gzip and
3)tar and gzip together ?

pls make it clear to me.

thanx in advance.
Old 03-31-2006, 02:29 AM   #2
Registered: Nov 2005
Posts: 123

Rep: Reputation: 15

Could you clarify your question please? Do you mean when to compress or extract?
Old 03-31-2006, 02:43 AM   #3
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,631

Rep: Reputation: 144Reputation: 144
A simple answer would be to use

-- gzip: when it's a single file that should be compressed
-- tar : when you want to archive a bunch of files but need no compression or fast execution
-- tar.gz: archive bunch of files with intermediate compression (will take longer)
-- tar.bz2: archive bunch of files with good compression (takes even longer)
Old 03-31-2006, 06:59 AM   #4
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
hi titopoquito ,

thanx a lot for making it clear to me.
Old 03-31-2006, 06:59 AM   #5
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
hi vmlinuz.gz ,

yes now it's clear.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tar and gzip - how do i point to a output directory RedHat123 Linux - Newbie 4 04-20-2011 11:48 AM
tar and gzip c0c0deuz Linux - General 2 10-31-2002 04:04 PM
gzip-1.2.4.tar Install ljc Linux - General 3 01-20-2002 10:44 PM
dd, tar and gzip nabil Linux - General 3 01-18-2002 05:51 PM
Need Serious Help With Tar And Gzip!! Please! rootlinux Linux - General 2 12-16-2001 02:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration