Watch processes Linux

Syntax

watch [options] command [command options]

Example

watch “ps -e | grep php”

This will generate a list of processes every two seconds, filter for all lines that contain the word “php”, and display the results on the screen. 

Leave a Reply