LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-19-2005, 12:32 AM   #1
wuya
Member
 
Registered: Apr 2005
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
making tar.gz


How do I make tar.gz?

There is a folder in '/home/wuya/styles/pillow' that I would like to tar. How do I do it?
 
Old 04-19-2005, 12:59 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
tar -czf archivename.tgz filename

use the tar utility - see the man pages for tar to see the details.

Basically you do this:

Code:
tar -czf tarball.tgz .
-czf means to create a new archive, filter through gzip, and stick in the filename wot comes next.
"tarball.tgz" is the name of the new archive
"." is every file in the current directory (you can just type a list of files if you want).

or you can tar, then gzip, one after the other...

Code:
tar -cf tarball.tar . | gzip -c
which will give you a file called "tarball.tar.gz" but this is the same as tarball.tgz
 
  


Reply


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
making a tar.gz file djgerbavore Linux - Newbie 1 04-01-2005 07:26 PM
Making RPMs from tar.gz pembo13 Linux - Software 2 09-10-2004 08:09 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


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

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