Help with tar of *.tgz
I need to untar a file called cst-022404.tgz
What is the best option to use here with the tar command? Thanks. |
Hi,
tar -zxf cst-022404.tgz The z switch is for unzipping before untarring (x). Hope this helps. |
Well, the extract option is -x, and since it's gzipped, you'll need -z, so
Code:
tar -zxf cst-0220404.tgz A lot of people always use -v (verbose) which IMO is stupid. Writing to the terminal is a couple of orders of magnitude slower than writing to a hard drive, so all -v does is slow the process down substantially. If you want to see what's in the file, then look at it with less, assuming you have a working lesspipe.sh, if not, then use the -t option: Code:
tar -ztf cst-0220404.tgz | less |
Just as an aside, .tgz files are _usually_ (this is to say not always) precompiled Slackware binaries which don't require untarring: a simple (as root) installpkg <tgz_filename_here> command would install it. But, like I said, usually, not always :)
|
All times are GMT -5. The time now is 12:16 AM. |