- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need zip command tips , thanks
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
10-07-2005 04:13 PM
10-07-2005 04:13 PM
Need helps,
If i got the a file : abc.txt , and i also need to zip it
[gbm5:/] #ll abc*
-rw-rw-rw- 1 root sys 27 Oct 8 11:57 abc.txt
[gbm5:/] #gzip abc.txt
[gbm5:/] #ll abc*
-rw-rw-rw- 1 root sys 50 Oct 8 11:57 abc.txt.gz
[gbm5:/] #
How could I keep both files :
abc.txt and abc.txt.gz
like this:
[gbm5:/] #ll abc*
-rw-rw-rw- 1 root sys 27 Oct 8 11:57 abc.txt
-rw-rw-rw- 1 root sys 50 Oct 8 11:57 abc.txt.gz
[gbm5:/] #
Does gzip optional make it?
Thanks for your tips,
Violin.
violin@gbmgroup.com.cn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:22 PM
10-07-2005 04:22 PM
Re: Need zip command tips , thanks
tar cvf /tmp/myfiles.tar abc.txt def.txt ghi.dat
gzip /tmp/myfiles.tar
To reverse the process you:
gunzip myfiles.tar.gz
tar xvf myfiles.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:35 PM
10-07-2005 04:35 PM
Re: Need zip command tips , thanks
# /opt/java1.4/bin/jar -cvf fork.zip fork.c
added manifest
adding: fork.c(in = 333) (out= 208)(deflated 37%)
# ls fork.c fork.zip
fork.c fork.zip
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 08:53 PM
10-07-2005 08:53 PM
Re: Need zip command tips , thanks
tar -cvfz abc.txt
It will give you both the original file plus the compressed file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2005 10:47 PM
10-08-2005 10:47 PM
Re: Need zip command tips , thanks
Tim