Lpic 2 Linux Engineer · Free Practice Question Medium
Question 1
- A dmesg | grep -i eth
- B ip link set eth0 up
- C systemctl restart networking
- D netstat -tulnp
Reveal correct answer
Correct answer: A
A. Running 'dmesg | grep -i eth' will display the kernel ring buffer messages related to network interfaces, allowing you to check if the network card is detected by the system after the kernel upgrade. This command will show any relevant information about the network interface, including any errors or warnings.
B. The command 'ip link set eth0 up' is used to bring up a specific network interface (in this case, eth0). However, this command does not directly check if the network card is detected by the system after a kernel upgrade. It only brings up an interface that is already known to the system.
C. 'systemctl restart networking' is used to restart the networking service on the system. While this command may help in refreshing the network configuration, it does not specifically check if the network card is detected by the system after a kernel upgrade. It focuses on restarting the networking service rather than detecting hardware changes.
D. 'netstat -tulnp' is used to display active network connections and listening ports. This command does not provide information about network interfaces or whether a network card is detected by the system after a kernel upgrade. It focuses on network connections and ports rather than hardware detection.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
