วันศุกร์ที่ 15 มกราคม พ.ศ. 2553

show progress ระหว่างใช้คำสั่ง dd

เวลาใช้คำสั่ง dd ก็จะไม่รู้ว่ามันทำงานไปถึงไหนแล้ว

เช่น dd if=/dev/sda of=/dev/sdb

พอ enter ปุ๊บมันก็จะเงียบไม่บอกกล่าวอะไร

ให้เปิดอีก terminal แล้วสั่ง kill -USR1 `pgrep ^dd`

จะเห็นแบบนี้ ^-^

5588081+0 records in
5588080+0 records out
2861096960 bytes (2.9 GB) copied, 131.32 s, 21.8 MB/s




อ้างอิง http://blog.christophersmart.com/2009/11/28/checking-the-progress-of-dd/

ไม่มีความคิดเห็น: