QuestionQ21

Basic Unix Skills

Which of the following lines comes from the output of last?

  • A 3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
  • B May 11 19:34:24 fbsd login[793]: login on ttyv0 as root
  • C root ttyv0 Sat May 18 13:35 still logged in
  • D 763 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1
  • E FreeBSD 12.0-RELEASE r341666 GENERIC
Explanation

The last utility reports login sessions using the user name, terminal, session start time, and session end or duration. An active session is indicated as “still logged in,” which matches the root ttyv0 Sat May 18 13:35 still logged in record format.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!