For the past 30 years or so, my brain always tells me to type “last” instead of “tail”. This usually results in some kind of “Permission denied” message that confuses me for a few seconds.
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!”.
For the past 30 years or so, my brain always tells me to type “last” instead of “tail”. This usually results in some kind of “Permission denied” message that confuses me for a few seconds.
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