虛請教如何修改某一個 byte - Linux

Table of Contents

例如

你要把 b 這個字寫到 50001 bytes

echo -n 'b' > ./tmp

dd if=./tmp of=YourFileHere conv=notrunc bs=500 seek=100

反正後面兩個數字乘起來是你要的大小就好(500*100=50000)

不過 bs=500~1000 應該比較適當

--

All Comments

Delia avatarDelia2010-09-17
林雙醬,非常感謝汝~~謝謝~
Iris avatarIris2010-09-20
哇! 醬醬林耶 XD