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!

How to decompress .tar.gz archive?

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

how exactly do I decompress a

.tar.gz

file?

I need exact command syntax...

Thanks in advance.

Regards
Thomas
 
You need the command , gunzip . This can be obtained from
look for gzip/gunzip .
once downloaded and installed on your server ( thats if you haven't already got it)

gunzip name.tar.gz
tar -xvf (name of file i.e. *.tar)
Note:- Have a look at tar to see if backed up relative or absolute i.e. / in from or . in front of filename )
if / you should be able to restore from anywhere . if . then
cd into directory where you want to restore files to

HTH
 
As DSMARWAY hints above, it's useful to check the tar archive first to establish whether relative or absolute pathnames have been used. Do this using tar -tvf <name>.tar this will give you a list of files in the archive, but won't actually write them anywhere. You can then decide on where you want to restore the files to. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top