last: add page (#12603)

* last: add page

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com>
pull/28/head
Alejandro Cervera 2024-04-09 06:31:40 -05:00 committed by GitHub
parent 0dffaf54fe
commit 198d776ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 37 additions and 0 deletions

37
pages/linux/last.md Normal file
View File

@ -0,0 +1,37 @@
# last
> List information of last user logins.
> See also: `lastb`, `login`.
> More information: <https://manned.org/last.1>.
- 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`