Just as title mentioned, How can I oversee a process using ps with periodicity scanning just like command "top", thanks first开发者_StackOverflow:)
If the process you want to see is PID 4815 and you want it to update every 2 seconds you could do an infinite while loop.
while true; do ps 4815; sleep 2; clear; done
The utility watch is meant for this purpose also:
watch ps 4815
精彩评论