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

By Ula
at 2010-09-17T14:37
at 2010-09-17T14:37
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 應該比較適當
--
你要把 b 這個字寫到 50001 bytes
echo -n 'b' > ./tmp
dd if=./tmp of=YourFileHere conv=notrunc bs=500 seek=100
反正後面兩個數字乘起來是你要的大小就好(500*100=50000)
不過 bs=500~1000 應該比較適當
--
Tags:
Linux
All Comments

By Delia
at 2010-09-17T15:46
at 2010-09-17T15:46

By Iris
at 2010-09-20T09:38
at 2010-09-20T09:38
Related Posts
apt 掛了

By Delia
at 2010-09-17T14:13
at 2010-09-17T14:13
virtual memory 在 physical memory位址

By Olivia
at 2010-09-17T12:07
at 2010-09-17T12:07
請問怎麼抓[]中的字串

By Harry
at 2010-09-17T11:49
at 2010-09-17T11:49
ASUS CM5671無法安裝Ubuntu 10.04的解法

By Kumar
at 2010-09-17T10:57
at 2010-09-17T10:57
ftp port command & data

By Hamiltion
at 2010-09-17T08:10
at 2010-09-17T08:10