From 198d776ba1c8eabeffa5d5a16cd6ec7b01738955 Mon Sep 17 00:00:00 2001 From: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> Date: Tue, 9 Apr 2024 06:31:40 -0500 Subject: [PATCH] last: add page (#12603) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * last: add page --------- Co-authored-by: Juri Dispan Co-authored-by: VĂ­tor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/linux/last.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/linux/last.md diff --git a/pages/linux/last.md b/pages/linux/last.md new file mode 100644 index 000000000..c6000b467 --- /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`