Manage ports and processes
npm install zammy-plugin-portManage ports and processes from your terminal.
``bash`
/plugin install zammy-plugin-port
Show all listening ports on your system.
`
PORT PID PROCESS
────────────────────────────────────────
3000 12345 node
5432 6789 postgres
8080 11111 java
Total: 3 ports
`
Check if a specific port is in use.
`bash`
/port check 3000Port 3000 is in use
PID: 12345
Process: node
Kill the process running on a specific port.
`bash`
/port kill 3000Process killed (PID: 12345)
Note: May require administrator/root privileges for some processes.
Find all ports used by processes matching a name.
`bash`
/port find nodePORTS FOR "NODE"
PORT PID PROCESS
3000 12345 node
3001 12346 node
This plugin works on:
- Windows - Uses netstat and taskkilllsof
- macOS - Uses and killlsof
- Linux - Uses /netstat and kill`
This plugin requires shell access to run system commands.
MIT