- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- compress tar.bz2
Operating System - Linux
1820117
Members
3043
Online
109619
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО03-04-2011 12:22 AM
тАО03-04-2011 12:22 AM
Hi,
I want to compress a tar file.
current name is test.tar. i want to make it tar.bz2.Could you please tell me the full command.
RHEL 5.2
Regards,
I want to compress a tar file.
current name is test.tar. i want to make it tar.bz2.Could you please tell me the full command.
RHEL 5.2
Regards,
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 05:54 AM
тАО03-04-2011 05:54 AM
Solution
bzip2 test.tar
It will produce test.tar.bz2, and if the compression is successful, the original file will be removed.
If you want the original file to remain, then:
bzip2test.tar.bz2
When creating a tar file, you can also compress it at the same time, by adding "j" to the tar options. For example:
tar jcf test.tar.bz2 /some/directory
MK
It will produce test.tar.bz2, and if the compression is successful, the original file will be removed.
If you want the original file to remain, then:
bzip2
When creating a tar file, you can also compress it at the same time, by adding "j" to the tar options. For example:
tar jcf test.tar.bz2 /some/directory
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 07:46 AM
тАО03-04-2011 07:46 AM
Re: compress tar.bz2
> When creating a tar file, [...]
Or, the old-fashioned way:
tar cf - stuff | bzip2 > stuff.tar.bz2
which works with any compression filter
program (gzip, ...), and with versions of
"tar" which don't themselves know how to do
the compression.
Or, the old-fashioned way:
tar cf - stuff | bzip2 > stuff.tar.bz2
which works with any compression filter
program (gzip, ...), and with versions of
"tar" which don't themselves know how to do
the compression.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 11:10 PM
тАО03-15-2011 11:10 PM
Re: compress tar.bz2
Tnx all
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP