Type in the following command in the command line: cat /etc/services 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.