该dd
手册是在这个非常有限的:`
status=LEVEL
The LEVEL of information to print to stderr; 'none' suppresses
everything but error messages, 'noxfer' suppresses the final
transfer statistics, 'progress' shows periodic transfer
statistics
Run Code Online (Sandbox Code Playgroud)
这并没有说明实际输出,当我复制一个大图像文件时,它看起来像这样,例如:
dd if=input.img of=output.img status=progress
结果是:
到目前为止的传输速度和复制时间是显而易见的,但前三个数字是什么意思?
第一个数字 (1207841280) 是到目前为止复制的字节数。第二个数字被解释为 SI 单位千兆字节(1 GB 是 1000 3个字节)。第三个数字被解释为 IEC 单位Gibibytes(1 GiB 是 1024 3个字节)。请注意“GB”和“GiB”之间的区别。
的的源代码dd
在GNU命令coreutils软件包使用变量叫si
并iec
举行最后两个这些数字。请参阅 中的print_xfer_stats
函数dd.c
。实际输出发生在第 821 行。