Which of the following utilities should you use to view the /var/log/lastlog file?
  1. cat
  2. lastlog
  3. last
  4. grep
Explanation
Answer - B - The lastlog utility helps you view the /var/log/lastlog file.

Key Takeaway: The lastlog command formats and prints the contents of the last login log /var/log/lastlog file. This contains the login-name, port, and last login time. The default command without any flags will cause the entries that are printed to be sorted by the numerical UID.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz