Find process by port
Which process is listening on a specific port
ss -tlnp | grep :<port>
- tool
- linux133 commands
More linux commands
-
ps aux --sort=-%cpu | head -15Top 15 processes by CPU consumption
-
ps aux --sort=-%mem | head -15Top 15 processes by memory consumption
-
journalctl -u <service> -f --since '10 minutes ago'Stream logs for a systemd unit from the last 10 minutes
-
systemctl status <service> --no-pager -lService status, recent log lines, and active timers
-
tcpdump -i eth0 -nn host <ip> and port 80 -w /tmp/capture.pcapCapture specific traffic to a pcap file