check what port a service is running on linux code example Example: ubuntu check process on port sudo lsof -i:22