Thursday, May 8, 2014

The watch command

A very nice command to watch something in linux

watch -n1 "sudo netstat -antp | grep -i listen"

this will show you on the screen the output of sudo netstat -antp | grep -i listen every "1" second. 

No comments:

Post a Comment