CompTIACompTIA
XK0-005 · Question #1874
XK0-005 Question #1874: Real Exam Question with Answer & Explanation
The correct answer is A: loginctl list-sessions. shows all active user sessions on a systemd-based host, allowing loginctl list-sessions the administrator to confirm whether any users are currently logged in.
System Management
Question
Before a Linux administrator restarts a system using systemd, the administrator wants to know if any of the server users are currently logged in. Which of the following commands should the administrator use to verify that the server is not being used?
Options
- Aloginctl list-sessions
- Bjournalctl -u
- Csystemctl status user-sessions
- Dsystemd --user
Explanation
shows all active user sessions on a systemd-based host, allowing loginctl list-sessions the administrator to confirm whether any users are currently logged in.
Topics
#systemd#Login Sessions#User Management#Command-line Utilities
Community Discussion
No community discussion yet for this question.