- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- to tar and zip few files
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
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
08-21-2006 02:55 PM
08-21-2006 02:55 PM
Need to know the exact command to tar few files into single file then to zip it.
Thanks
Fauziah Mahdan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 02:58 PM
08-21-2006 02:58 PM
Re: to tar and zip few files
# tar -cvf filename.tar file1 file2 file3 file4
To zip, you must have already installed zip on your HP-UX machine as zip is not included.
If you have zip installed, do a 'zip -?' for the syntax as I can't recall exactly the syntax required.
You can always use compress or gzip instead.
# compress filename.tar
will create filename.tar.Z
or
# gzip filename.tar
will create filename.tar.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 03:12 PM
08-21-2006 03:12 PM
Re: to tar and zip few files
where can id download zip file for hpux 11.23 itanium rx2620 server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 03:25 PM
08-21-2006 03:25 PM
Solutionhttp://hpux.connect.org.uk/hppd/hpux/Misc/zip-2.31/
Unzip is available here (yes they are separate packages):
http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 03:37 PM
08-21-2006 03:37 PM
Re: to tar and zip few files
e.g
/tmp/path/a.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 05:29 PM
08-21-2006 05:29 PM
Re: to tar and zip few files
OR
# cd /tmp/path && gzip a.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 09:39 PM
08-21-2006 09:39 PM
Re: to tar and zip few files
After zip installation run:
Tar cf - file1 file2 | gzip > arc.tar.gz
You don't have to create temporary file.
In order to restore files:
gunzip -c arc.tar.gz | tar xf - [file1 file2 ]
HTH