nerdexam
CompTIA

LX0-103 · Question #183

An administrator is having some trouble with a disk partition and needs to do maintenance on this partition. The administrator's users home directories are on it and several are logged in. Which of th

The correct answer is A. telinit 1. telinit 1 transitions the system to single-user mode, disconnecting all logged-in users and enabling safe maintenance on partitions such as home directories.

System Architecture

Question

An administrator is having some trouble with a disk partition and needs to do maintenance on this partition. The administrator's users home directories are on it and several are logged in. Which of the following commands would disconnect the users and allow the administrator to safely execute maintenance tasks?

Options

  • Atelinit 1
  • Bshutdown -r now
  • Ckillall -9 inetd
  • D/bin/netstop --maint
  • E/etc/rc.d/init.d/network stop

How the community answered

(28 responses)
  • A
    75% (21)
  • B
    14% (4)
  • C
    7% (2)
  • E
    4% (1)

Why each option

telinit 1 transitions the system to single-user mode, disconnecting all logged-in users and enabling safe maintenance on partitions such as home directories.

Atelinit 1Correct

The telinit 1 command instructs init to switch to runlevel 1 (single-user mode), which terminates all multi-user services and active user sessions. This clears access to the home directory partition and provides a root-only shell for safe administrative maintenance without rebooting.

Bshutdown -r now

shutdown -r now performs a full system reboot, which is unnecessarily disruptive and does not allow the administrator to perform maintenance tasks before restart.

Ckillall -9 inetd

killall -9 inetd terminates only the inetd super-daemon and has no effect on users who are already logged in via established sessions.

D/bin/netstop --maint

/bin/netstop --maint is not a valid or standard Linux command.

E/etc/rc.d/init.d/network stop

Stopping the network init script disconnects network interfaces but does not terminate local terminal sessions or release the home directory partition.

Concept tested: Linux runlevel switching for single-user maintenance mode

Source: https://man7.org/linux/man-pages/man8/telinit.8.html

Topics

#runlevels#telinit#single-user mode#system maintenance

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice