Sample Header Ad - 728x90

how to Find the port number according to PID

-1 votes
2 answers
1514 views
The following command can be used to find out which process is listening on a particular port: netstat -ltnp | grep -w ':8011' How can we do the opposite, find the port number according to PID number?
Asked by yael (13936 rep)
Jun 16, 2022, 11:57 AM
Last activity: Jun 16, 2022, 12:23 PM