为什么 tar 命令被标记为“legacy”?
我不知道这是否真的属于这里,也许这个问题更适合超级用户。好吧,上周我编写了一个小型 shell 脚本,其中使用了 tar 命令。当我在关于 tar 的 opengroup 页面上阅读该人时,我看到它已标记为遗留,建议不要再使用它。有谁知道为什么?我应该使用什么命令呢?
I don't know if this actually belongs here, maybe this question is more suitable to superuser. Well, last week I've wrote a small shell-script, where I used the tar command. As I read the man on the opengroup page about tar, I saw that it was marked as legacy, and that it is recommended to not use it any more. Does anyone knows why? And what command should I use instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AFAIK,实际上没有人使用 pax,正如 1997 年文档所建议的那样,顺便说一句。此外,当前版本的 tar 可以处理超过 8 GB 的文件,而我的 tar 版本至少可以容纳
Й.txt
,因此 7 位 ascii 文件名限制显然已经不复存在了。AFAIK, practically no one uses pax, as recommended by the document, which is dated 1997, BTW. Besides, current versions of tar can handle more than 8 GB, and my version of tar, at least, can hold
Й.txt
, so the 7-bit ascii filename limit is obviously gone with the wind.答案位于您提到的页面底部:应用程序应该迁移到使用 pax 。
tar 不支持大于 8 GB 的文件,而 pax 确实,例如国际字符编码、ACL...
The answer is at the bottom of the page you mention: applications should migrate to use pax.
tar does not support files bigger than 8 gigabytes, while pax does, among other things, such as international character encoding, ACLs...