port¶
List or kill processes by port.
Synopsis¶
Description¶
List processes listening on ports, or find and kill the process using a specific port.
Flags¶
| Flag | Short | Description | Default |
|---|---|---|---|
--kill |
-k |
Kill the process listening on the port | false |
--udp |
-u |
Include UDP ports | false |
--all |
-a |
Show all ports (not just listening) | false |
Examples¶
List all listening ports:
Find process on specific port:
Kill process on port:
Include UDP ports:
Show all connections (not just listening):