last

System logins and logouts.

Platform support

Please be aware that some queries can only be run against certain platforms. Below is a list of the supported platforms that this query supports. Zercurity will automatically pause queries from running if errors are detected. Running a query against an unsupported platform will result in the following error: no such table: last

  • Linux
  • Mac OSX

Table schema

Name Type Description
username TEXT Entry username
tty TEXT Entry terminal
pid INTEGER Process (or thread) ID
type INTEGER Entry type, according to ut_type types (utmp.h)
time INTEGER Entry timestamp
host TEXT Entry hostname

Query examples

Select all the results for the given table.

SELECT * FROM last;