- Type in the following command in the command line:
- Hit the enter key
- And now a list of TCP and UDP port numbers will appear together with the service name that’s using them.
How to view a list of all port numbers in Linux
7 sec read