linux , list of listenning ports

علی ذوالفقار
1400/07/27 12:20:58 (261)
list what is listenning on port 25 :
lsof -i:25
list only pid of above example :
lsof -t -i:25
kill the process listen on post 25 :
kill $(lsof -t -i:25)
Back