LFCS · Question #260
Which of the following commands is used to deactivate a network interface?
The correct answer is A. ifdown. This question seeks the command-line utility used to disable or deactivate a network interface on a Linux system.
Question
Options
- Aifdown
- Bipdown
- Cnet
- Dnetdown
How the community answered
(36 responses)- A94% (34)
- B3% (1)
- D3% (1)
Why each option
This question seeks the command-line utility used to disable or deactivate a network interface on a Linux system.
The `ifdown` command is a standard utility on Linux systems, typically used within network configuration scripts, to deactivate a specified network interface. It handles the process of bringing down the interface, releasing its IP address, and stopping associated network services.
`ipdown` is not a standard or recognized command for deactivating network interfaces in Linux; the correct utilities are `ifdown` or `ip link set dev <interface> down`.
`net` is a general command with various network-related subcommands but does not directly deactivate an interface by itself.
`netdown` is not a standard command used in Linux to deactivate a network interface.
Concept tested: Deactivating network interfaces
Source: https://man7.org/linux/man-pages/man8/ifdown.8.html
Topics
Community Discussion
No community discussion yet for this question.