Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what these two command Tar and compress are doing.[\b]

Status
Not open for further replies.

CALYAN

Programmer
Joined
Apr 23, 2001
Messages
39
Location
US
Is zipping and compress are one and the same?
 
tar mainly saves & restores archives of files on a tape or a regular file.

compress is mainly to reduce the size of the files named after.

For more information
>man tar
>man compress
 
Zipping = Taking a folder/directory/file and compressing it into a single entity. I.E...folder.zip

Compress = Taking a folder/directory/file and compressing it using OS compression. I.E...folder.Z
 
tar does not compress the files -- the resulting tar file will be as large (or nearly as large) as the sum of the size of the files that are in the tar file.

And as the other two said, compress can be used to make that tar file smaller. It is native to the operating system and is the one you should use if you are sending a file to some other site and you don't know if they have zip or gzip.

And zip and gzip are shareware that do the same as compress, although in some cases, they can make a file smaller than using compress.
 
tar and zip are 2 different utilities. The question above does not include tar.
 
But the subject does.
 
thanks a lot.
I asked two questions only . one in subject and other inside the subject.

calyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top