XK0-005 · Question #116
A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfig is as follows: Which of the following…
The correct answer is E. chkconfig --level 345 network on. To re-enable the network service to start automatically in standard multi-user runlevels, the administrator should use chkconfig --level 345 network on. This command specifies runlevels 3, 4, and 5, which are common multi-user runlevels where network services are typically…
Question
A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfig is as follows:
Which of the following commands BEST describes how the administrator should re-enable the network service?
Options
- Achkconfig --level 0 network on
- Bchkconfig --level 0-6 network on
- Cchkconfig --level 6 network on
- Dchkconfig --level 12 network on
- Echkconfig --level 345 network on
How the community answered
(52 responses)- A4% (2)
- B15% (8)
- C2% (1)
- D8% (4)
- E71% (37)
Why each option
To re-enable the network service to start automatically in standard multi-user runlevels, the administrator should use `chkconfig --level 345 network on`. This command specifies runlevels 3, 4, and 5, which are common multi-user runlevels where network services are typically required.
Runlevel 0 is the halt state, and enabling the network service for halt is not a meaningful action for starting it on boot.
Enabling the network service for all runlevels from 0 to 6 is excessive and incorrect, as runlevel 0 is halt, and runlevel 1 is single-user mode where networking is usually disabled.
Enabling the network service only for runlevel 6 (reboot) would not ensure it starts during normal multi-user operation (runlevels 3, 4, 5).
Runlevels 1 and 2 are typically single-user mode and multi-user mode without network services, respectively; enabling the network service specifically for these may not cover the desired normal operating states.
The `chkconfig --level` command specifies the runlevels in which a service's boot behavior should be modified. Runlevels 3, 4, and 5 are standard multi-user states where networking is essential, and setting the service 'on' for these levels ensures it starts automatically during normal operation.
Concept tested: Enabling services for specific runlevels with chkconfig
Source: https://linux.die.net/man/8/chkconfig
Topics
Community Discussion
No community discussion yet for this question.