A Linux system administrator needs to temporarily take the enp0s3 network interface offline to perform a maintenance task. The interface must be brought down gracefully without affecting other interfaces. Which command should the administrator use?
The correct command is ip link set enp0s3 down. This command uses the ip utility, which is the modern standard for network configuration in Linux, to change the state of a network link device. The set subcommand is used to modify the attributes of the device, and down sets the administrative state of the interface to offline. ip link down enp0s3 is incorrect because it is missing the required set keyword. ifconfig enp0s3 down would accomplish the task on older systems or those with net-tools installed, but ifconfig is a deprecated utility and has been replaced by the ip command. ip addr del dev enp0s3 is incorrect as this command is used to delete an IP address from an interface, not to bring the entire interface link down. The link would remain active.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the `ip` command used for in Linux?
Open an interactive chat with Bash
Why is `ifconfig` deprecated, and what are the advantages of using `ip`?
Open an interactive chat with Bash
What is the significance of the `set` keyword in the `ip link` command?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .