this post was submitted on 03 Aug 2026
373 points (97.9% liked)

Programmer Humor

32608 readers
835 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 

ahh

~$ which cat
you are viewing a single comment's thread
view the rest of the comments
[โ€“] HamsterRage@lemmy.ca 2 points 5 hours ago (1 children)

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!".

[โ€“] shark_byte@lemmy.zip 1 points 5 hours ago

yeah I looked it up

this will be handy

~$ last reboot
~$ last -s -7days