Quick Linux Tip #6:
Try: lsof -p 3456
Info: lsof shows all files, sockets, and connections used by a process. Great for troubleshooting.
Examples:
- $ lsof -p 3456
- $ lsof -i :8080
- $ lsof -u username
Note: Use -i for network connections. -i :PORT shows the process using that port.
Leave a Reply