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
Post a Comment