使用 Windows 创建 .tgz?
抱歉,在我在线提交作业之前,我想问一个简单的问题。我刚刚遵循了本指南 -
http://www.ehow.com/how_6104990_create-_tgz -file-windows.html
从我的文件夹之一创建 .tgz 文件。然后,我将从 .tar.gz 创建的文件重命名为 .tgz。
我只是想知道这是否与我的教授给我们提交的说明具有完全相同的结果:
“从您的工作目录运行命令‘tar cvfz Lab-2.tgz Lab-2’。 选项“v”使 tar 变得非常健谈:它应该准确地告诉您 .tgz 中的内容 档案。请确保在提交存档之前检查 tar 输出。”
非常感谢,并对这个愚蠢的问题感到抱歉...我只是不想因为这样的愚蠢事情而失去分数!非常感谢:)
Sorry, just a quick question before I submit an assignment online. I just followed this guide -
http://www.ehow.com/how_6104990_create-_tgz-file-windows.html
to make a .tgz file from one of my folder. I then renamed the file created from .tar.gz to a .tgz.
I was just wondering would this have the exact same result as the instructions my professor gave us for submission :
"Run the command ‘tar cvfz Lab-2.tgz Lab-2’ from your working directory. The
option ‘v’ makes tar very chatty: it should tell you exactly what is going into the .tgz
archive. Make sure you check the tar output before submitting your archive."
Thank you very much, and sorry for the silly question...I just don't want to be losing marks because of silly things like this ! Thanks a lot :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,7-Zip 将生成与 Linux tar 命令相同的 gzipped tar 文件。
您可以打开在 7-Zip 中创建的文件并查看其中的文件以验证它是否包含您想要的内容。
但如果您正在参加推荐的课程,我会建议您学习 Linux。如果没有别的事,您可以安装 Cygwin 并从那里使用 tar 命令。
Yes, 7-Zip will produce gzipped tar files the same as the Linux tar command.
You can open the file you created in 7-Zip and look at the files in it to verify that it contains what you wanted.
But I would recommend learning Linux if you are taking a class where it is recommended. If nothing else, you can install Cygwin and use the tar command from there.
文件内容是相同的。 tar.gz 和 .tgz 都代表相同的压缩存档。您可以运行其中一个
,或者
如果您进行了比较,它们将是相同的。
The file contents are the same. Both tar.gz and .tgz represent the same compressed archive. you can run either
or
if you did a diff they would be the same.
.tgz 相当于 .tar.gz
您可以通过解压缩然后解压来确认 tarball 是否正确。
.tgz is equivalent to .tar.gz
You can confirm that the tarball is good by un-gzipping it and then untarring it.