We often get into a situation wherein we have to check if a particular port is being used by some process.
Command
netstat -an | grep [port number] | grep LISTEN
Command to identify the OS process associated with a port
lsof -i tcp:[port number]
Command
netstat -an | grep [port number] | grep LISTEN
Command to identify the OS process associated with a port
lsof -i tcp:[port number]
No comments:
Post a Comment