List open ports in Linux

From Cramsession
Revision as of 21:48, 29 May 2025 by Mflavell (talk | contribs) (Created page with " == Netstat == If netstat is not installed run: sudo apt install net-tools then you can run: netstat -tulnp == lsof == Display open files and ports: lsof -i -P -n")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials

Netstat

If netstat is not installed run:

sudo apt install net-tools


then you can run:

netstat -tulnp


lsof

Display open files and ports:

lsof -i -P -n