Linux or Mac, List of the Port occupation
Mac, List of the Port occupation lsof -iTCP -sTCP:LISTEN -n -P Usage of lsof command, for the port management | | 10 lsof Command Examples in Linux: lsof meaning ‘LiSt Open Files’ is used to find out which files are open by which process. One of the reason to use lsof command is when a disk cannot be unmounted as it says the files are being used. Or some port is occupied. 1. List all Open Files with lsof Command In the below example, it will show long listing of open files some of them are extracted for better understanding which displays the columns like Command, PID, USER, FD, TYPE etc.
…