Difference between revisions of "Port to PID"
From Noah.org
Jump to navigationJump to searchLine 1: | Line 1: | ||
[[Category:Engineering]] | [[Category:Engineering]] | ||
− | + | [[Category:Networking]] | |
+ | Use the `lsof` command to find which process is listening on a given port? | ||
For example, I saw that some process was already using port 69 (normally TFTP). | For example, I saw that some process was already using port 69 (normally TFTP). |
Revision as of 14:03, 28 August 2008
Use the `lsof` command to find which process is listening on a given port?
For example, I saw that some process was already using port 69 (normally TFTP).
lsof -i :69
To look for http:
lsof -i :80
You can also look for files opened by a given user or command:
lsof -u USER lsof -c COMMAND