I have recently begun using a VPS and am learning linux along the way. I have compressed a folder using tar, then I gzipped it and used scp to send it to my server. When I decompress using tar -zxvf .tar.gz, all of the files within the folder still have .gz . Am I compressing the folder wrong to begin with?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
Is it possible that you first
If yes - the first
Or even simpler
|
|||||
|
|
Yes, you are compressing the folder wrong to begin with. You can do it correctly all in one step like this:
|
|||
|
|
|
Try a "tar -tvzf" on your archive and check if the files inside the archive are individually gzipped from their file names. It's the only way I can think of that might make this happen, although I'm not sure how you would have gzipped each file while compressing. |
|||
|
|
