nerdexam
Linux_Foundation

LFCS · Question #783

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 correct answer is A. telinit 1. To safely perform maintenance on a disk partition used by logged-in users, the telinit 1 command switches the system to single-user mode, which disconnects users and halts most services.

Submitted by thandi_sa· Apr 18, 2026Operation of Running Systems

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

(29 responses)
  • A
    86% (25)
  • B
    7% (2)
  • C
    3% (1)
  • D
    3% (1)

Why each option

To safely perform maintenance on a disk partition used by logged-in users, the `telinit 1` command switches the system to single-user mode, which disconnects users and halts most services.

Atelinit 1Correct

The `telinit 1` command transitions the system to runlevel 1 (single-user mode), which typically terminates active user sessions and non-essential services, providing an environment suitable for system maintenance.

Bshutdown -r now

`shutdown -r now` initiates an immediate system reboot, which would disconnect users but not provide a stable single-user environment for maintenance tasks.

Ckillall -9 inetd

`killall -9 inetd` would forcefully stop the `inetd` daemon, but this would not log out all users or prepare the system for general disk maintenance.

D/bin/netstop --maint

`/bin/netstop --maint` is not a standard Linux command and would likely result in an error.

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

`/etc/rc.d/init.d/network stop` would stop the networking service but would not log out users or put the system into a maintenance-specific runlevel.

Concept tested: Linux runlevels and maintenance mode

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

Topics

#Runlevels#Maintenance Mode#Single-User Mode#System State

Community Discussion

No community discussion yet for this question.

Full LFCS Practice