|
Register or have you forgotten your password?
|
|
|
| Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | ||||||||
|
Desperately needs a life
![]()
|
How do I do one of those tar ball things or gzip dealies on a unix system? I have an email directory on Sparc something, and I want to squish up all the emails into one file.
Really, I suppose, I want to be able to type in a command that indicates which directory to archive, and have it archive all the files into one file, rather than into a bunch or individually archived files, which seems to be all I know how to do. :-( man files are evil, which is why I'm asking you knowledgible folks. :-) -edit- Hey, check me out, cult member! ![]() ![]() ![]()
|
||||||||
|
|
|
|
|
#2 | ||||||||
|
Technoid
![]()
|
Quick answer: tar czf <filename> <dir to be tarred>.
a bit longer: c - create archive z - gzip compression f - filename You don't need z if you don't want it compressed. Using x (extract archive) instead of c does the opposite when you want your files back. I don't know, but I'm sure it's also possible to either use wildcards or just type the list of files you want to have tarred instead of <dir to be tarred>, if you prefer. Sincerely, -Kenneth Straarup. EDIT: the flags can come in any order, btw, cfz fzc, etc, afaik. It may depend on tar implementation, though. |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Defender of the Faith
![]()
Join Date: Sep 2002
Posts: 1,112
|
Sparc something would indicate solaris, so the z flag might not work.
Just leave it out and then do a gzip -9 file.tar after you've rolled up the package. Edit: Wow, I've turned into a cult member too.. :-D |
||||||||
|
|
|
|
|
#4 | |||||||||
|
Lifetime Member
|
Quote:
tar -cf - directory_to_be_tarred | gzip -9 > whatever.tar.gz For transit on a DOS floppy (like say, to an Amiga) use .tgz instead of .tar.gz -- Failure |
|||||||||
|
|
|
|
|
#5 | ||||||||
|
Desperately needs a life
![]()
|
Thanks, guys, it worked first time. That -z thing wasn't in the -h, so I guess you were right about it not being on Solaris. Hadda gzip. Now my many emails take up tiny space. :-)
|
||||||||
|
|
|
|
|
#6 | |||||||||
|
Kindred of Babble-on
![]()
Join Date: Mar 2002
Posts: 2,184
|
Quote:
|
|||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| unix , tarball , gzip |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which Unix/Linux for AmigaOne ? | CLS2086 | Linux PPC discussion | 3 | 07-25-2009 11:48 AM |
| Tell me about Unix | X-ray | CH / General | 12 | 04-14-2009 03:10 PM |
| UNIX for Amiga? Anyone tried it? | Amithony | Amiga Hardware Issues and discussion | 5 | 12-01-2008 08:22 AM |
| OT: Microsoft's UNIX | asian1 | Alternative Operating Systems | 6 | 11-08-2003 01:08 PM |
| Analogy: Amiga and UNIX | jtsiren | Alternative Operating Systems | 18 | 02-15-2003 11:12 AM |