john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

List of network service connections

linux-list-of-network-service-connections

lsof

or

lsof -Pnl | more

-P no port # to port name -n no network # to network name -l no user id to user name

netstat -tulpn

* -t : TCP port
* -u : UDP port
* -l : Show only listening sockets.
* -p : Show the PID and name of the program to which each socket / port belongs
* -n : No DNS lookup (speed up operation)

or netstat -npl

cat /etc/services


  • « Linux hostname
  • Linux keyboard layout reconfigure console »

Published

Feb 6, 2010

Category

linux

~65 words

Tags

  • connections 1
  • linux 249
  • list 23
  • network 20
  • of 13
  • service 12