Forrest logo
back to context overview

last

List of commands for last:

  • last:tldr:13789 last: Specify how many of the last logins to show.
    $ last -n ${login_count}
    try on your machine
    explain this command
  • last:tldr:30795 last: View all recorded shutdowns (i.e., the last logins of the pseudo user "shutdown").
    $ last shutdown
    try on your machine
    explain this command
  • last:tldr:98bd1 last: View last logins, their duration and other information as read from `/var/log/wtmp`.
    $ last
    try on your machine
    explain this command
  • last:tldr:9c50f last: Print the full date and time for entries and then display the hostname column last to prevent truncation.
    $ last -F -a
    try on your machine
    explain this command
  • last:tldr:d2b99 last: View all logins by a specific user and show the IP address instead of the hostname.
    $ last ${username} -i
    try on your machine
    explain this command
  • last:tldr:e33c5 last: View all recorded reboots (i.e., the last logins of the pseudo user "reboot").
    $ last reboot
    try on your machine
    explain this command
back to context overview