chris clarke
software development that works…or something
Find which process is listening on a port
October 17, 2007 on 6:20 pm | In Unix |To find which process is listening on port 22:
lsof -i:22
Find out which port a process is listening on e.g. httpd:
lsof -P -c httpd -a -i
Or by PID:
lsof -P -p 267 -a -i
lsof can also be used to find the files a process has open. To look for where httpd writes it’s log files:
lsof -c httpd | grep log
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Find which process is listening on a port
October 17, 2007 on 6:20 pm | In Unix |To find which process is listening on port 22:
lsof -i:22
Find out which port a process is listening on e.g. httpd:
lsof -P -c httpd -a -i
Or by PID:
lsof -P -p 267 -a -i
lsof can also be used to find the files a process has open. To look for where httpd writes it’s log files:
lsof -c httpd | grep log
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by Cheese.
RSS Entries Feed.
RSS Comments Feed
^Top^