开发者

keep running process/refresh in bash

开发者 https://www.devze.com 2023-04-11 22:36 出处:网络
I want to keep an eye on the output of a particular command, say ps aux | grep guest. I\'m waiting for it to change. Is there any way I could do something like the tail command开发者_如何学编程 does

I want to keep an eye on the output of a particular command, say ps aux | grep guest.

I'm waiting for it to change. Is there any way I could do something like the tail command开发者_如何学编程 does to a file?

Max


You're looking for:

watch "ps aux | grep guest"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号