![]() |
|
|
|
|
|||||||
| 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 |
| how to tar a directory in a sun solaris? | mmb | SUN Solaris | 7 | 05-19-2008 08:03 AM |
| Usage of /var/tmp/ directory on Solaris 10 | patilmuragesh | SUN Solaris | 1 | 12-12-2007 09:31 AM |
| compress Directory | deep_kol | Shell Programming and Scripting | 9 | 11-29-2007 09:12 PM |
| compress disk on Solaris 9 | gandolf989 | SUN Solaris | 2 | 01-05-2007 01:59 PM |
| How to Compress files before moving them in a directory | godalle | Shell Programming and Scripting | 3 | 11-10-2005 08:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to compress a directory on a Sun Solaris 5.7 ?
Hi,
Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ? Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Check out the tar command or cpio command. Both will archive directories. Once you have created the tar-ball you can then gzip it! On Solaris, there is a program called pax though I have never used it.
|
|
#3
|
||||
|
||||
|
......
i think tar does what you want....
search the man page for more information this is a solaris question and should be posted in our new solaris forum (thx to neo) ;-) . |
|
#4
|
|||
|
|||
|
Thanks
Thanks google and pressy for your prompt response.
google -> My server does not have much space and backing up on tape would have taken much time and anyway, I wanted free space temporarily. Hence, I was looking for something, which would compress contents of all sub-directories. gzip is available on our server, which has an option -r, which recursively compresses all files of a specified directory. Pressy - > This topic should have been opened in Solaris forum. Please excuse me. |
|
#5
|
|||
|
|||
|
Re: Thanks
Quote:
try using: "tar -cpz * > filename.tar.gz" I used * as wildcard to take everything in the dir i am in and everythign underneath it, but you can specify any file or dir that you want. |
|||
| Google The UNIX and Linux Forums |