我想知道是否有某些版本的 dd 不理解乘法后缀。从 dd 手册页中它说:
bs=BYTES
read and write BYTES bytes at a time (also see ibs=,obs=)
BLOCKS and BYTES may be followed by the following multiplicative suffixes: c =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M GB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E, Z, Y.
但是当我在 bs 参数上运行带有 G 后缀的 dd 时,我收到一个关于无法理解的数字的错误:
bash $ dd if=/dev/urandom of=largeMovie.avi count=1024 bs=75G
dd: invalid number `75G'
dd的版本如下:
bash $ dd --version
dd (coreutils) 5.97
一个