Linux command
bunzip2 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Decompress
bunzip2 [file.txt.bz2]
Decompress
bunzip2 -k [file.txt.bz2]
Decompress
bunzip2 -c [file.txt.bz2] > [file.txt]
Test
bunzip2 -t [file.txt.bz2]
Force
bunzip2 -f [file.txt.bz2]
说明
bunzip2 decompresses files compressed with bzip2. It's equivalent to `bzip2 -d` and removes the .bz2 file after successful decompression. The tool is a companion to bzip2 for extracting compressed files.
参数
- -k, --keep
- Keep compressed file
- -f, --force
- Overwrite existing files
- -c, --stdout
- Write to standard output
- -t, --test
- Test file integrity
- -v, --verbose
- Verbose mode
- -q, --quiet
- Suppress warnings
- -s, --small
- Reduce memory usage at the cost of speed (uses about 2.5 MB per file)
FAQ
What is the bunzip2 command used for?
bunzip2 decompresses files compressed with bzip2. It's equivalent to `bzip2 -d` and removes the .bz2 file after successful decompression. The tool is a companion to bzip2 for extracting compressed files.
How do I run a basic bunzip2 example?
Run `bunzip2 [file.txt.bz2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -k, --keep do in bunzip2?
Keep compressed file