Bitcomp is a powerful tool for lossless file compression and decompression. It efficiently compresses files, ensuring that your data is stored in a compact format without any loss of information.
Before using Bitcomp, make sure to install it on your system. Follow the installation guide provided with the software package.
Modify the Makefile
to change the /home/bozhan/repo/nvcomp/lib
and /home/bozhan/repo/nvcomp/include/
to your own installed nvcomp path. Then:
make -j
To compress a file with Bitcomp, use the following command:
./bitcomp_example -c /path/to/file
This will compress the file located at /path/to/file
using Bitcomp's lossless compression algorithm. The compressed file name is /path/to/file.bitcomp
.
To decompress a file that has been compressed using Bitcomp, use the command:
./bitcomp_example -d /path/to/compressed/file
Here, /path/to/compressed/file
is the path to the file that you want to decompress. The decompressed file name is /path/to/compressed/file.decompressed
.
For a roundtrip process (compress and then decompress a file), and to verify the integrity and correctness of the process, use:
./bitcomp_example -r /path/to/file
This command performs both compression and decompression on /path/to/file
, allowing you to verify that the original file and the decompressed file are identical.