首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
讓 /bin/dd 有進度 (dd with progress Ubuntu/Fedora)
讓 /bin/dd 有進度 (dd with progress Ubuntu/Fedora)
讓 /bin/dd 有進度 (dd with progress Ubuntu/Fedora)


Type(Type) 2014/6/21 21:29

讓 /bin/dd 有進度 (dd with progress Ubuntu/Fedora)



有兩種方式達成:

1. 配合 "pv" 或 "pv -s SIZE" 使用


代碼:

$ apt-get install pv  (or, yum install pv)

$ dd if=/dev/zero bs=4096 | pv -s 2G | of=/tmp/file

(這裡的 -s 2G 取代 count=524288)


2. 或者直接安裝 "dcfldd" 配合 "time"


代碼:

$ apt-get install dcfldd  (or, yum install dcfldd)

$ man dcfldd

$ dcfldd if=/dev/zero bs=4096 of=/tmp/file count=524288 statusinterval=1

$ time dcfldd if=/dev/zero bs=4096 of=/tmp/file count=524288 statusinterval=1


(5,112 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

"讓 /bin/dd 有進度 (dd with progress Ubuntu/Fedora)" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2024