How do I recover a bzip2 file?

Updated -

In order to recover a bzip2 file, follow these steps:

  1. Test the integrity of the bzip2 file by typing the following command:

    
     bzip2 -t [filename]
     
    
  2. If the input is corrupted, run the command:

    
      bzip2recover [filename]
     
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content