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.
Question
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)- A86% (25)
- B7% (2)
- C3% (1)
- D3% (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.
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.
`shutdown -r now` initiates an immediate system reboot, which would disconnect users but not provide a stable single-user environment for maintenance tasks.
`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.
`/bin/netstop --maint` is not a standard Linux command and would likely result in an error.
`/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
Community Discussion
No community discussion yet for this question.