Multiple choice technology operating systems

How to change the port number of a service

  1. Use nmap command

  2. Modify the port number in /etc/hosts file.

  3. Modify the port number in /etc/services file

  4. Modify the port number in /etc/resolv.conf file

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The /etc/services file maps human-readable service names to their corresponding port numbers and protocols. Modifying this mapping adjusts how services resolve their ports. Distractors like nmap are scanning tools, while /etc/hosts and resolv.conf handle host name resolution configurations.