A Linux user needs to confirm their device's IPv4 address to manually configure a network application.
Which command should the IT support technician advise them to execute?
Correct Answer: A
The ifconfig command is used to configure, or view the configuration of, network interfaces, which includes displaying the IPv4 address associated with each network interface. It provides a clear and comprehensive overview of network settings.
Option B is incorrect because hostname -I displays all network addresses on the host, which can be confusing if multiple addresses are returned.
Option C is incorrect because iwconfig is used for configuring wireless network interfaces and does not typically display IPv4 addresses for wired connections.
Option D is incorrect because sudo lshw -C network lists detailed information about network hardware and does not focus on displaying network configurations like IPv4 addresses.