
答案1
該dd
命令需要在後台運行(即以 結尾&
)或在另一個視窗中運行,以便能夠被監視。正如所寫,該命令在完成其工作pkill
後啟動。dd
否則,您可能會運行pgrep dd
以查看它是否仍在運行。
答案2
當您啟動命令時,輸出僅顯示在 pts/tty 中,例如我在 tty5 上
dd launched on tty5
pkill launched on tty5
the ouput is on tty5
現在我在 pts/4
dd launched on tty5
pkill launched on pts/4
the ouput is still on tty5