- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gzip the dirrectory
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-26-2008 10:16 PM
04-26-2008 10:16 PM
i have a crash directory including more one file and the same time is big size
i want to gzip this directory by gzip command how that.
i tried to use tar command but there something error
tar -cvf /?? /var/adm/crash/crash.0
thanks and best regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:24 PM
04-26-2008 10:24 PM
Re: gzip the dirrectory
The command should be
#tar -cvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:26 PM
04-26-2008 10:26 PM
Re: gzip the dirrectory
You can use gzip -r on the dir.
gzip -r /var/adm/crash/crash.0
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:39 PM
04-26-2008 10:39 PM
Re: gzip the dirrectory
gzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:44 PM
04-26-2008 10:44 PM
Re: gzip the dirrectory
i am using the gzip -r but i am not fount the result
where the destination output of this command thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:51 PM
04-26-2008 10:51 PM
Re: gzip the dirrectory
If you want to send the compressed files to a different location then you have to use the gzip with tar as above and send the output file to the destination.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:51 PM
04-26-2008 10:51 PM
Re: gzip the dirrectory
the gzip -r command will zip the files under the directories.
if you wanna zip the crash.o folder follow the command i stated earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 10:58 PM
04-26-2008 10:58 PM
Re: gzip the dirrectory
u can use gzip -r command
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 11:12 PM
04-26-2008 11:12 PM
Re: gzip the dirrectory
Does gzip help much with compression? I thought the crash images there were already kind of compressed.
Could you please provide some before and after sizes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 11:22 PM
04-26-2008 11:22 PM
Re: gzip the dirrectory
i am using this command but the comprressed is not compleate
#tar -cvf /var/adm/crash/crash.0 | gzip > crash.tar.gz
but this message is Appeared and i can see the file crash.tar.gz but it is Corrupted
or empty
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 11:26 PM
04-26-2008 11:26 PM
Re: gzip the dirrectory
sorry this the message
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file]
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 11:42 PM
04-26-2008 11:42 PM
Re: gzip the dirrectory
/var/adm/crash:> tar cvf - ./crash.0 |gzip - > crash.0.tgz
/var/adm/crash:> ll
total 16
-rw-rw-rw- 1 root sys 456 Apr 27 10:01 crash.0.tgz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 11:44 PM
04-26-2008 11:44 PM
Re: gzip the dirrectory
tar cvf - ./crash.0 |gzip - > crash.0.tgz
After cvf, there is hyphen (-) and after gzip also there is hyphen
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 09:43 PM
04-27-2008 09:43 PM