TestOut Linux Pro Practice Test

Question: 1 / 400

What command would you use to stop a network interface called 'enp2s1'?

ifdown enp2s1

To stop a network interface called 'enp2s1', the command that would be most appropriate is "ip link set enp2s1 down." This command is part of the newer set of networking utilities that manage network interfaces in a more versatile and modern way. When using this command, you are directly instructing the system to take the specified interface down, disabling network traffic on it.

The other choices do not perform the action of stopping an interface correctly. For instance, "ifdown enp2s1" might be valid in some distributions, but it is considered part of an older networking script method that doesn't work universally across all Linux distributions.

The option "ip addr del enp2s1" is misunderstood because this command is used to remove an IP address from the specified interface but does not take the interface down itself.

Lastly, the option "stop enp2s1" is not a valid command in any context for managing network interfaces, as Linux does not support this syntax for stopping network interfaces.

Therefore, the command "ip link set enp2s1 down" is the most effective and universally recognized way to achieve this goal.

Get further explanation with Examzify DeepDiveBeta

ip link set enp2s1 down

ip addr del enp2s1

stop enp2s1

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy