List all processes with process ID that use a port

List open files

# List open files is usefull for many things including:
lsof -i :80  // list open files that use the port  80 A.K.A processes that use the port 80

lsof /folder  // list open files (processes orginating) in folder 

lsof -p 1080  // list open files used by process id in this case 1080

lsof -u user // open files by specific user

Leave a Reply

Your email address will not be published. Required fields are marked *