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.
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)- A75% (21)
- B14% (4)
- C7% (2)
- E4% (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.
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.
shutdown -r now performs a full system reboot, which is unnecessarily disruptive and does not allow the administrator to perform maintenance tasks before restart.
killall -9 inetd terminates only the inetd super-daemon and has no effect on users who are already logged in via established sessions.
/bin/netstop --maint is not a valid or standard Linux command.
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
Community Discussion
No community discussion yet for this question.