
有沒有辦法在終端機中檢查某個進程(已知的 PID)是否正在執行某些操作或無回應且「掛起」?使用 Ubuntu 14.04,有問題的進程是 TestDisk 和 GParted。
答案1
您可以檢查這些進程的 diskIO 和 cpu 使用情況。它不會給出明確的答案,但會顯示進程是否繁忙。
sudo iotop | grep [your pid here]
top | grep [your pid here]
有沒有辦法在終端機中檢查某個進程(已知的 PID)是否正在執行某些操作或無回應且「掛起」?使用 Ubuntu 14.04,有問題的進程是 TestDisk 和 GParted。
您可以檢查這些進程的 diskIO 和 cpu 使用情況。它不會給出明確的答案,但會顯示進程是否繁忙。
sudo iotop | grep [your pid here]
top | grep [your pid here]