Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.
|
|||||||
Begin your free trial now
Pay-as-you-go options starting at $10/user/month
Pay-as-you-go options starting at $10/user/month
Gzip and tar @ the same time in Solaris...
|
|
Thread Tools | Search this Thread |
|
#1
|
||||
|
||||
|
Gzip and tar @ the same time in Solaris...
Hi all,
Anyone knows how to tar and gzip a file at the same time in Solaris 8? This is easy to do under Linux with tar xzvf, but I'm not sure how to pipe the commands under Solaris... TIA. |
|
#2
|
||||
|
||||
|
gunzip < file.tar.gz |tar xfv -
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
||||
|
||||
|
(g)zip (-r) package-name file(s). Use -r if you want to include subdirectories as well.
|
|
#5
|
||||
|
||||
|
Quote:
|
|
|
|
#6
|
||||
|
||||
|
tar -cf package files/directories ;gzip package.tar
By the way, bzip2 compresses much better than gzip. |
|
#7
|
||||
|
||||
|
Quote:
Thanks for the heads up. Yups, thanks for the bzip2 tip as well. I'll use bzip2 when I can, but it isn't installed in the system I'm using
|
|
#8
|
||||
|
||||
|
By the way, not all versions of tar add that .tar extension there.
|
![]() |
| Similar Topics | ||||
| Topic | Replies | Forum | ||
Combining the 5 solaris files...
|
8 | The Alternative OS | ||
How to get image of RAM in Linux & Solaris through C++ Programming
|
3 | The Alternative OS | ||
Virtual X11 Server for Solaris 9
|
1 | The Alternative OS | ||
SSH- Solaris 2.8
|
4 | The Alternative OS | ||
Sun to unveil Solaris 10 later this year
|
0 | General Discussion | ||
| Thread Tools | Search this Thread |
|
|
All times are GMT -4. The time now is 02:07 AM.


Thanks for the heads up. Yups, thanks for the bzip2 tip as well. I'll use bzip2 when I can, but it isn't installed in the system I'm using

Combining the 5 solaris files...