- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compress/zip a file in HP-UX and then uncompress/u...
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
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
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
04-10-2004 05:57 PM
04-10-2004 05:57 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 07:07 PM
04-10-2004 07:07 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
to zip:
gzip myfile
it becomes myfile.gz
to unzip
or
compress myfile
it becomes myfile.Z
uncompress myfile.Z
it becomes myfile
SEP
gunzip myfile.gz
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 07:32 PM
04-10-2004 07:32 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
New info:
I need to compress a group of files. Like file-1 to file-10 in one file. How to compress these files in one compressed file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 08:05 PM
04-10-2004 08:05 PM
SolutionAll files are put in an archive
gzip archive.tar
becomes archive.tar.gz
gunzip archive.tar.gz
becomes archive.tar
tar xvf archive.tar
files untarred from the tarball.
Hope this has been helpful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 08:24 PM
04-10-2004 08:24 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
You can run the following:
tar cvf - filename1 filename2 dir1 | gzip > arcname.gz
In order to uncompress:
cd somedir; gunzip -c arcname.gz| tar xvf -
The minus sign ( - ) means standard output and standard input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 09:36 PM
04-10-2004 09:36 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
Try it or start your own thread.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2004 11:42 PM
04-10-2004 11:42 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
I prefer not to open an additional thread. Please read below, this is a screen copy:
argus:/tmp# ls srvmail.*
srvmail.sh040407.log srvmail.sh040607.log srvmail.sh040807.log
srvmail.sh040507.log srvmail.sh040707.log srvmail.sh041107.log
argus:/tmp# tar cf - srvmail* | gzip > sep.gz
argus:/tmp# mkdir zxc
argus:/tmp# cd zxc
argus:/tmp/zxc# gunzip -c /tmp/sep.gz |tar xf -
argus:/tmp/zxc# ls
srvmail.sh040407.log srvmail.sh040607.log srvmail.sh040807.log
srvmail.sh040507.log srvmail.sh040707.log srvmail.sh041107.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 02:22 AM
04-11-2004 02:22 AM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
#compress abc (To Compress)
#compress -d abc (To decompress)
OR
#uncompress abc
#gzip abc (To Compress)
#gzip -d abc (To decompress)
Use -v option to see compress ratio.
#compress -v abc
You can do man compress or man gzip for more options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 11:29 AM
04-11-2004 11:29 AM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
you can download and install zip and unzip utilities similar to MS-DOS, to zip and unzip files MS-DOS compatibles.
http://hpux.cs.utah.edu/hppd/hpux/Misc/zip-2.3/
http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.50/
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 04:12 PM
04-11-2004 04:12 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
--DC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:48 PM
04-11-2004 09:48 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
http://forums1.itrc.hp.com/service/forums/helptips.do?#28?
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:56 PM
04-11-2004 09:56 PM
Re: Compress/zip a file in HP-UX and then uncompress/unzip the same file
sks