I created .tgz file with tar czvf file
command.then I ended up with a tgz file. I want to know the difference between it and tar.gz.
我使用tar czvf文件命令创建了.tgz文件。然后我得到了一个tgz文件。我想知道它和tar。gz的区别。
3 个解决方案
#1
127
I think in the old package repo days, .tgz was used because files on Dos floppies could only have three letter extensions. When this limitation was removed .tar.gz was used to be more verbose by showing both the archive type (tar) and zipper (gzip).
我认为在旧的包回购日,.tgz被使用,因为Dos软盘上的文件只能有三个字母的扩展名。当这个限制被移除时。tar。通过显示归档类型(tar)和zipper (gzip), gz以前更加冗长。
They are identical.
他们是相同的。
#2
23
There's no difference at all. .tgz
is simply shorthand for .tar.gz
.
根本没有区别。.tgz只是. .tar.gz的简写。
#3
9
One difference is that browsers seem to have trouble with .tar.gz sometimes, for example, when downloading such a file that already exists locally, it can happen, that they rename it to .tar-1.gz, which will then create problems with certain archivers.
不同之处在于,浏览器似乎对.tar有问题。例如,gz在下载本地已经存在的文件时,有时会将其重命名为.tar-1。gz,这会给某些归档文件带来问题。
This doesn't happen with .tgz ending.
这不会发生在。tgz结尾。
#1
127
I think in the old package repo days, .tgz was used because files on Dos floppies could only have three letter extensions. When this limitation was removed .tar.gz was used to be more verbose by showing both the archive type (tar) and zipper (gzip).
我认为在旧的包回购日,.tgz被使用,因为Dos软盘上的文件只能有三个字母的扩展名。当这个限制被移除时。tar。通过显示归档类型(tar)和zipper (gzip), gz以前更加冗长。
They are identical.
他们是相同的。
#2
23
There's no difference at all. .tgz
is simply shorthand for .tar.gz
.
根本没有区别。.tgz只是. .tar.gz的简写。
#3
9
One difference is that browsers seem to have trouble with .tar.gz sometimes, for example, when downloading such a file that already exists locally, it can happen, that they rename it to .tar-1.gz, which will then create problems with certain archivers.
不同之处在于,浏览器似乎对.tar有问题。例如,gz在下载本地已经存在的文件时,有时会将其重命名为.tar-1。gz,这会给某些归档文件带来问题。
This doesn't happen with .tgz ending.
这不会发生在。tgz结尾。