ubuntu check which service is using port code example Example: ubuntu check process on port sudo lsof -i:22