nerdexam
CompTIA

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…

System Management

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)
  • A
    4% (2)
  • B
    15% (8)
  • C
    2% (1)
  • D
    8% (4)
  • E
    71% (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.

Achkconfig --level 0 network on

Runlevel 0 is the halt state, and enabling the network service for halt is not a meaningful action for starting it on boot.

Bchkconfig --level 0-6 network on

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.

Cchkconfig --level 6 network on

Enabling the network service only for runlevel 6 (reboot) would not ensure it starts during normal multi-user operation (runlevels 3, 4, 5).

Dchkconfig --level 12 network on

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.

Echkconfig --level 345 network onCorrect

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

#Service Management#chkconfig#Runlevels#Boot Process

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice