| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 51718 | 2004-11-28 09:19:00 | tar.bz2 unzipping | phil.b (4456) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 297302 | 2004-11-28 09:19:00 | Is there a command to unzip & untar a filename.tar.bz2 file. I've tried tar -xvfj filename.tar.bz2 & it doesn't work. I've been bunzip2 filename.bz2 then tar -xvf filname.tar to de-compress. Phil |
phil.b (4456) | ||
| 297303 | 2004-11-28 09:25:00 | Winzip does TZ and Tar. Have u tried that | Spacemannz (808) | ||
| 297304 | 2004-11-28 09:32:00 | > Is there a command to unzip & untar a > filename.tar.bz2 file. I've tried tar -xvfj tar -xjvf filename.tar.bz2 note the position of j >I've been bunzip2 > filename.bz2 then tar -xvf filname.tar to bunzip2 filename.tar.bz2 |
beama (111) | ||
| 297305 | 2004-11-28 09:32:00 | Winzip doesn't run under Linux. To unzip a bzip'd file: bunzip2 filename.tar.bz2 tar -xvf filename.tar |
Wood-Chuck (6195) | ||
| 297306 | 2004-11-28 09:41:00 | Thanks beama. | phil.b (4456) | ||
| 297307 | 2004-11-29 01:44:00 | Your original tar command would have worked, except ... :D The f must be the last option ... it means "use the next thing in this command line as the filename". You probably didn't have a file called "j" in that directory. ;-) So, tar xvjf filename.tar.bz2 is what you wanted. (tar doesn't insist on the "-' before the option string ... that's a bit historic, and probably not POSIX-conformant. ]:) ) You could probably do tar -x -v -f filename.tar.bz2 -j , but that gets a bit long-winded. |
Graham L (2) | ||
| 1 | |||||