How to know which ports of a server are opened?

As I forget always how to know which ports are opened on a server (on the local machine), I write down here the command to run:

This is the result:

Leave a Reply

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