I'm using SOlaris 10. How do I extract the file hidden within
a .tar.bz2 archive?
Thanks, - Dave
I think you want bunzip2:
# bunzip2
bunzip2: I won't read compressed data from a terminal.
bunzip2: For help, type: `bunzip2 --help'.
# man bunzip2
Reformatting page. Please Wait... done
User Commands bzip2(1)
NAME
bzip2, bunzip2 - a block-sorting file compressor, v1.0.6
bzcat - decompresses files to stdout
bzip2recover - recovers data from damaged bzip2 files
SYNOPSIS
bzip2 [ -cdfkqstvzVL123456789 ] [ filenames ... ]
bunzip2 [ -fkvsVL ] [ filenames ... ]
bzcat [ -s ] [ filenames ... ]
bzip2recover filename
Thanks,
Cindy
> Hi,
>
> I'm using SOlaris 10. How do I extract the file hidden within
> a .tar.bz2 archive?
bunzip2 < foo.tar.bz2 | tar xfv -
--
Chris
Thanks for this command but I got an error ...
# bunzip2 < vim-7.3.tar.bz2 | tar xfv
tar: tarfile must be specified with 'f' function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize]
[tarfile] [size] [exclude-file...] {file | -I include-file | -C
directory file}...
- Dave
You forgot the "-" argument from the end of my commandline.
--
Chris
You can also use gtar (usually in /usr/sfw/bin/gtar)
gtar jxvf filename.tar.bz2