Sample Header Ad - 728x90

Difference between .bz2 and .tar.bz2 files

2 votes
3 answers
990 views
I am supposed to find whether a file is compressed using .bz2 or .tar.bz2(without using extension of file) and and decompress it accordingly. I used the file command but it is giving same result for both .bz2 and .tar.bz2. Please suggest a way to identify .bz2 and .tar.bz2 files distinctly.
Asked by charan priyatham (83 rep)
Sep 15, 2019, 09:17 PM
Last activity: Sep 16, 2019, 09:07 AM