> For the complete documentation index, see [llms.txt](https://applezulab.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/show-the-procedure-of-dd-process.md).

# 在 Linux 系統呈現 dd 的進度

範例：定時呈現 dd 進度\
\
撰寫一個名為 show\_all\_dd.sh 的 shell script, 針對全部的 dd 指令：<br>

```shell
#!/bin/bash
while 
  killall -USR1 dd;
  do sleep 5; 
done
```

或者用 pid 指定特定的 dd process，假設將 shell 存為 show\_dd.sh 檔名，\
\
可用 ./show\_dd.sh pid 來執行［pid 是 dd 的 process ID］<br>

```shell
#!/bin/bash
# 這邊要依據自己系統上的 dd process ID 
pid=$1

while 
  kill -USR1 $pid;
  do sleep 5; 
done
```

\
參考資料\
晟誼科技，[http://www.datasos.tw/jiuyuanjishu/20130805/2300.html](https://web.archive.org/web/20200306075605/http://www.datasos.tw/jiuyuanjishu/20130805/2300.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/show-the-procedure-of-dd-process.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
