Ubuntu netstat command - howto keep it updating? -


i know there way run netstat command on ubuntu keeps updating. know? know when process opens or closes socket:

sudo netstat -lnp |grep 12239 

you can wrap command in watch, eg try

 watch -n 60 "sudo netstat | head 10" 

where use grep expression instead of head 10. updates every 60 seconds, see man watch.


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -