Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems extracting tar file

Status
Not open for further replies.

ianf

MIS
Mar 23, 2001
183
GB
Hi all,

I'm creating tar & gzip files using the following;

> tar cf perf_stats.`date +"%y%m%d%H%M"`.tar working | gzip perf_stats.`date +"%y%m%d*"`.tar

Once I've unzipped the file I try to do
> tar xf filename .

to extract, but get nowhere.
I can see the files within the archive if I do
> tar tf filename
and they look fine.

Can anyone see what I'm doing wrong ? Ian

"IF" is not a word it's a way of life
 
The file is a GNU zipped tar file now. So you need to gunzip it before untarring it.

tar zxf filename.tar

To do the gzip and tar in one command:
tar zcf filename.tar files



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top