|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
About tar and gzip commands
Hi folks,
OBSD 4.1 Can you please shed me some light to compress a directory as .tar.gz file with tar and gzip commands in one pass? $ tar cpf - /path/to/Directory | gzip > Directory.tar.gz ??? and how to redecompress it to a designated directory, also in one pass? TIA B.R. satimis |
|
#2
|
||||
|
||||
|
OpenBSD (at least since 4.0) now supports the -z command for tar . So you can do this:
tar zcf directory.tar.gz /path/to/directory/* and to unzip and extract: tar zxf directory.tar.gz
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Quote:
Noted with tks. What is the difference between .tar.gz and .tgz? Are they the same? Tks B.R. satimis |
|
#4
|
||||
|
||||
|
Yep. There is no difference.
|
|
#5
|
|||
|
|||
|
Quote:
Noted with tks. satimis |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > About tar and gzip commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|