![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 01:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 06:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
tar command.
I have a big file, I would like to use command tar
Can I compress it 2 files with command tar ? I have data : file1.Z my target : archive files, file1.tar and file2.tar many thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
No offence but I believe you have not fully grasped what TAR does. It stands for Tape ARchive and should be taken as such. The TAR function will not compress the archive and the compress program would need to be used afterwards. This of course will be pointless as you cannot really compress an already compressed file! I hope this helps.
|
|
#3
|
|||
|
|||
|
tar is an archiver, no compression tool. If you want to compress only 1 file, you can use one of those: compress, gzip, bzip2, ....
I didn't get it, what you want. Do you want to put the 2 tar files together and compress them or uncompress the file "file1.Z"??? |
|
#4
|
|||
|
|||
|
While tar is an archiver, and the old school of thought is that it cannot do compression, there is the j and z option on gnu tar to compress "in stream" sort of.
tar(1): GNU version of tar archiving utility - Linux man page tar -z for gzip tar -j for bzip2 (higher compression, but slower) tar -Z for compress, for low compression but compatibility with older systems. |
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
Dependent on the version - if you don't want to check what options tar can take for compression, just
1. tar it 2. compress it So that you get a "myfile.tar.gz" for example. |
|||
| Google The UNIX and Linux Forums |