Can't seem to find where this last command gets its information from. Does anyone know what file it uses (specifically for Unix macOS) ?
Tried cat /var/log/wtmp, cat /var/run/utmp, cat /var/log/lastlog but all I get is: cat: [...]: No such file or directory . Tried cat /var/log/system.log and sudo cat /var/audit but these aren't it either. Is it just me or ? Where is this file ?
man lastsay? On typical unix it is stored in/var/log/wtmpand on the FreeBSD I have handy it is/var/log/utx.logdtrussis Mac'sstraceequivalent; you should be able to usedtrussto find this information.