A system administrator runs a command to list live connections on interactive terminals. Which file supplies the records that reflect these active sessions?
The live session utility reads /var/run/utmp, which is updated by login services to track current interactive shells and terminals. /var/log/wtmp holds a historical archive of logins and logouts, /var/log/btmp records failed login attempts, and /var/log/lastlog shows the most recent login for each account rather than ongoing sessions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why does the `/var/run/utmp` file track active sessions?
Open an interactive chat with Bash
How does `/var/log/wtmp` differ from `/var/run/utmp`?
Open an interactive chat with Bash
What kind of information is stored in the `/var/log/btmp` file?