- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: compressing/zipping or uncompressing/unzipping...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 07:40 AM
тАО12-26-2005 07:40 AM
What are the various commands available for compressing/zipping or unzipping/uncompressing
the files ?
Which one of them can be used for compressing or uncomprssing directories also ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 07:54 AM
тАО12-26-2005 07:54 AM
SolutionTo compress and uncompress you can use 'compress(1)' or 'gzip'. See their manpages for more information. Another open source utility is 'bzip'.
As for compressig and uncompressing directories, you are really operating on all the files within the directory. The aforementioned utilities will do this too. Again, the manpages are your best friend!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 10:57 AM
тАО12-26-2005 10:57 AM
Re: compressing/zipping or uncompressing/unzipping files on hpux
do not think that gzip was by default pre-install. if u require gzip:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.5/
as for compress, james is right to mention "man compress" for more info.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 03:05 PM
тАО12-26-2005 03:05 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
You can use gzip which comes with HP-UX by default, Location : /usr/contrib/bin/gzip
Uncompressing, You can use gunzip or gzip -d
Location : /usr/contrib/bin/gunzip
Or, you can use jar -xvf to unzip files.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 03:32 PM
тАО12-26-2005 03:32 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
You can use gzip, gunzip, zcat utilities to perform compress & expanding operations on hp ux. Please see the man pages for the same.
shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 03:36 PM
тАО12-26-2005 03:36 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
concerning gzip, note that you will need to patch to the gzip 1.2.4 for it to support files greater than 4GB.
However, gzip cannot compress several files into a single archive directly! You will first have to create a tar file then compress it:
for GNU tar: gtar cvzf file.tar.gz filenames
for any tar: tar cvf - filenames | gzip > file.tar.gz
Alternatively, you can use zip, PowerArchiver 6.1, 7-zip or Winzip. The zip format allows random access to any file in the archive, but the tar.gz format usually gives a better compression ratio.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 04:37 PM
тАО12-26-2005 04:37 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 04:40 PM
тАО12-26-2005 04:40 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
winzip as its first 3 letters imply is for windows only.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 04:43 PM
тАО12-26-2005 04:43 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
# /opt/java1.4/bin/jar -xvf
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 04:44 PM
тАО12-26-2005 04:44 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
sorry for the confusion. winzip is for windows environments only.
You may try zip from http://www.info-zip.org/pub/infozip/
Also know as Info-ZIP, its purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 04:45 PM
тАО12-26-2005 04:45 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 05:30 PM
тАО12-26-2005 05:30 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 05:56 PM
тАО12-26-2005 05:56 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
Here it is : All the compressing tools for hp-ux
1. compress
2. gzip
3. jar
4. zcat
5. zip
http://hpux.cs.utah.edu/hppd/hpux/Misc/zip-2.31/
To Uncompress:
1: uncompress
2. gunzip
3. jar
4. zcat
5. unzip
http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.52/
For further details , check the man page.
Extensively used are gzip , compress . zip/unzip used to dealing with zip based file , dos/win.
cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 06:06 PM
тАО12-26-2005 06:06 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
Also a final thought,
You can use tar/pax/cpio etc , before using the compression tool, it will archived the files and then compress the file into a single file.
Ex:
# cd /mydir
# tar -cvf mydir.tar *
# gzip mydir.tar mydir.tar.gz
To uncompress:
------------
# cd dest_dir
## copy the source file mydir.tar.gz to dest_dir
# gunzip mydir.tar.gz
# tar -xvf mydir.tar
And you are done.
Hope this will help,
cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2005 07:40 PM
тАО12-26-2005 07:40 PM
Re: compressing/zipping or uncompressing/unzipping files on hpux
you can use compress/uncompress, native HP-UX commands, or zip/unzip, gzip as thisr part tools.
HTH,
Art