BZIP2 Commands Cheat Sheet

Here is a cli commands cheat sheet for BZIP2 command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is BZIP2 command?

Add some data here

        ---
tags: [ compression ]
---
# To compress a file (foo -> foo.bz2):
bzip2 -z foo

# To decompress a file (foo.bz2 -> foo)
bzip2 -d foo.bz2

# To compress foo to stdout:
bzip2 -zc foo > foo.bz2

# To decompress foo.bz2 to stdout:
bzip2 -dc foo.bz2
    

Check out the BZIP2 command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list