Yes, but it shows information about recent/current logins and requires access a file called wtmp (or something like that, off the top of my head), and that requires privileged access.
My usual use case where I mix it up is looking at a log file and and I just want to see the last few entries. So my brain 🧠 tells my fingers to type “last logfile”, and when I get the permission message it tells my mouth to go, “Doh!”.
there’s a last command? just knowing that.
Yes, but it shows information about recent/current logins and requires access a file called wtmp (or something like that, off the top of my head), and that requires privileged access.
My usual use case where I mix it up is looking at a log file and and I just want to see the last few entries. So my brain 🧠 tells my fingers to type “last logfile”, and when I get the permission message it tells my mouth to go, “Doh!”.
yeah I looked it up
this will be handy
~$ last reboot ~$ last -s -7days