PDA

View Full Version : [ubuntu] command syntax?



archangel2021
July 12th, 2009, 06:18 AM
so for the life of me, i can't get this syntax figured out.

What is the command syntax to extract a specific file or folder out of a tar ball. ( tag.gz exactly ) ????????????????????? I just can't :(

JohnnySage50307
July 12th, 2009, 06:27 AM
The command you want is as follows:
"
$ tar xvzf package.tar.gz | for gzip files
$ tar xvjf package.tar.bz2 | for bzip2 files
"

This was taken from the Linux Pocket Guide by Daniel J. Barrett; it's published by O'Reily, and I highly sugest it to anyone who's new. I've been working on Linux machines for about 4yrs now, and I keep that book in my laptop bag for whenever I can't remember anything! It's like $10 at B&N

unlimitedz
July 12th, 2009, 06:44 AM
May be useful, to see the correct syntax for a command:

man tar