Can I split a large tar.bz2 file into several smaller files and extract those small tar.bz2 files individually in Ubuntu?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it’s easily possible. A
.tar.bz2is a single stream, it doesn’t have an index likezipthat would allow skipping to the start of a particular file within the archive. You can split the file usingsplitutility, and thancatthe parts and extract them (you can do this via stdin to avoid re-creating the pasted file on disk). The first fragment will be possible to extract separately (except for the last file in it which will probably be damaged), but further fragments will not be usable without the onces that come before them.