Question: who was logged in linux?
Answer: Method-2: who Command who command shows information about users who are currently logged in. It uses /var/run/utmp & /var/log/wtmp files to get the details. /var/run/utmp: It contains information about the users who are currently logged onto the system.