The services database maps service names to port numbers, so this prints ssh 22/tcp. getent services is the reliable way to look up standard ports without guessing. The same getent command works on passwd, group, and hosts entries.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.