view · edit · sidebar · attach · print · history

Ports and Processes

<< xorg | Index | Iptables >>

Use lsof to check a port

  • lsof -iUDP
  • lsof | grep perl
  • lsof -w -n -i tcp:34157
  • lsof -p 8260 | grep TCP

top all processes of a User

  • top -U bbmb

Kill all processes found with pgrep

  • pgrep httpd
  • kill -9 $(pgrep httpd)

Check the port a PID is using

  • lsof -Pan -p 30456 -i

pstree

  • pstree

Show when PID started

view · edit · sidebar · attach · print · history
Page last modified on March 13, 2018, at 02:14 PM