dd 命令 - 如何确定 cbs

发布于 2024-09-02 18:12:54 字数 80 浏览 2 评论 0原文

我有一个 EBCDIC 格式的输入文件。我不知道该文件中有多少条记录。那么,如果我想将其转换为 ASCII,ibs、obs 和 cbs 会是什么?

I have a input file in EBCDIC format. I have no idea how many records there are in the file. In that case, if I want to convert it to ASCII, what would be ibs, obs, and cbs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪眸﹌ 2024-09-09 18:12:54

如今,块大小通常并不重要。如果您实际上正在处理磁带(您知道,旧的 1/2 英寸卷轴来回摇动类型,或者可能是 QIC,四分之一英寸盒式磁带),那么块大小很重要。当使用磁盘时,块大小并不重要。

因此,对于 ibs 和 obs,要么保留默认值,要么只使用 bs=16k(或 256k,或任何其他数字),这样 ibs 和 obs 的大小相同。 cbs(转换缓冲区大小)也可能是相同的大小。

The block sizes are generally not crucial these days. If you were actually handling tapes (you know, the old 1/2 inch reels rocking back and forth type, or maybe QIC, quarter-inch cartridge), then block sizes mattered. When playing with disk, the block sizes don't matter very much.

So, for ibs and obs, either leave the default, or just use bs=16k (or 256k, or any other number), which does both ibs and obs at the same size. The cbs (conversion buffer size) could probably be the same size, too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文