diff --git a/pages/linux/last.md b/pages/linux/last.md new file mode 100644 index 0000000000..c6000b467c --- /dev/null +++ b/pages/linux/last.md @@ -0,0 +1,37 @@ +# last + +> List information of last user logins. +> See also: `lastb`, `login`. +> More information: . + +- List login information (e.g., username, terminal, boot time, kernel) of all users: + +`last` + +- List login information of a specific user: + +`last {{username}}` + +- List information of a specific TTY: + +`last {{tty1}}` + +- List most recent information (by default, the newest are at the top): + +`last | tac` + +- List information of system boots: + +`last "{{system boot}}"` + +- List information with a specific [t]imestamp format: + +`last --time-format {{notime|full|iso}}` + +- List information [s]ince a specific time and date: + +`last --since {{-7days}}` + +- List information (i.e., hostname and IP) of remote hosts: + +`last --dns`