bash check if process listen on port 542 code example Example: find out which procses is using port linux sudo lsof -i:<port_number>