Seems I cannot unzip tar.gz files in RH
I try to decompress but it just removes the gz
gzip -d myfile.tar.gz
there are no directoryes or files extracted and the origional file myfile.tar.gz now becomes just myfile.tar
Why is this? What am I missing?
Printable View
Seems I cannot unzip tar.gz files in RH
I try to decompress but it just removes the gz
gzip -d myfile.tar.gz
there are no directoryes or files extracted and the origional file myfile.tar.gz now becomes just myfile.tar
Why is this? What am I missing?
Hmm nothing. You're only unzipping the archive, not untarring it. Try
tar xzvf archive.tar.gz
at the prompt and it should work. In the case of bzip2 [.bz2] try
tar xjvf archive.tar.bz2
Hope it helps!
That worked. I had read part of the man page for gzip and some made sence but I guess I thought decompress would unpack it. So instead of using gzip i guess I would use tar.
I realy apreciate the help.
you can also view gzipped or bzipped files without decompressing with gzcat bzcat or zmore