Sample Header Ad - 728x90

bunzip2 to a different directory

14 votes
3 answers
37330 views
Say I have a file foo.tbz2 in a directory. I want to extract the tar file from the archive, but to a different directory. It seems like bunzip2 will only extract the archive to the same directory as the archive. This works, but I'm wondering if there is a better way: cd /another/directory bunzip2 -k /original/directory/foo.tbz2
Asked by longneck (430 rep)
Aug 15, 2012, 08:11 PM
Last activity: May 28, 2020, 09:37 AM