Operating System - HP-UX
1753903 Members
10211 Online
108810 Solutions
New Discussion юеВ

Re: similiar function as tar

 
ust3
Regular Advisor

similiar function as tar

what command have the similiar function as tar ? I would like to pack and zip some files in a directoy .

thx
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: similiar function as tar

Shalom,

cpio
gzip
pax

All perform similar functions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: similiar function as tar

zip
gzip
compress
bzip2
pax
cpio
ar
Torsten.
Acclaimed Contributor

Re: similiar function as tar

Some similar to this?

tar -cvf - /home/mydir |gzip > zipfile.gz

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sp4admin
Trusted Contributor

Re: similiar function as tar

Hello,

#cpio
#gzip
#compress
#pax

sp,
Steven Schweda
Honored Contributor

Re: similiar function as tar

> I would like to pack and zip some files in
> a directoy .

Why? And do what with them?

If you're keeping the stuff on a UNIX system,
then what's wrong with "tar" (possibly with
gzip or bzip2 compression)?

If you plan to move the stuff to a non-UNIX
system, then Zip might be a better choice.

"tar" is _very_ similar to "tar". If you
already have "tar", why do you want something
which is similar to "tar" but not "tar"?