Difference between revisions of "Last"
Jump to navigation
Jump to search
↑ http://man7.org/linux/man-pages/man1/last.1.html
(10 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
− | File: <code>/var/log/wtmp</code> | + | * <code>last</code> |
+ | * <code>[[last reboot]]</code> | ||
+ | * <code>[[last]] [[shutdown]]</code> | ||
+ | |||
+ | last | ||
+ | root [[pts]]/0 10.9.27.9 Mon Jan 24 11:27 still logged in | ||
+ | root pts/0 12.58.27.17 Fri Jan 21 10:35 - 11:49 (01:14) | ||
+ | |||
+ | |||
+ | File: <code>[[/var/log/wtmp]]</code> | ||
last | last | ||
last -x or --system Display the system [[shutdown]] entries and run level changes. | last -x or --system Display the system [[shutdown]] entries and run level changes. | ||
+ | macOS: | ||
+ | last --help | ||
+ | last: illegal option -- - | ||
+ | usage: last [-#] [-t tty] [-h hostname] [user ...] | ||
+ | |||
+ | last -t [[tty]] | ||
== Related commands== | == Related commands== | ||
Line 12: | Line 27: | ||
* <code>[[uptime]]</code> | * <code>[[uptime]]</code> | ||
* Sep 23 18:24:57 SERVER [[systemd-logind]][916]: New session 5 of user XXXX | * Sep 23 18:24:57 SERVER [[systemd-logind]][916]: New session 5 of user XXXX | ||
+ | * <code>[[journalctl --list-boots]]</code> | ||
+ | * <code>[[history]]</code> | ||
== See also == | == See also == | ||
Line 18: | Line 35: | ||
* {{who}} | * {{who}} | ||
* <code>[[acct]]</code>: <code>[[lastcomm]]</code> | * <code>[[acct]]</code>: <code>[[lastcomm]]</code> | ||
− | + | * {{last}} | |
[[Category:linux]] | [[Category:linux]] |
Latest revision as of 12:28, 24 January 2022
last
[1] list logins on the system
last
last reboot
last shutdown
last root pts/0 10.9.27.9 Mon Jan 24 11:27 still logged in root pts/0 12.58.27.17 Fri Jan 21 10:35 - 11:49 (01:14)
File: /var/log/wtmp
last last -x or --system Display the system shutdown entries and run level changes.
macOS:
last --help last: illegal option -- - usage: last [-#] [-t tty] [-h hostname] [user ...]
last -t tty
Related commands[edit]
netstat -nt | grep 22
uptime
- Sep 23 18:24:57 SERVER systemd-logind[916]: New session 5 of user XXXX
journalctl --list-boots
history
See also[edit]
/var/log/auth.log
uptime
,last
,who
, pts, tty,journalctl --list-boots, systeminfo , tuptime
who
,last, whoami
acct
:lastcomm
last
,journalctl --list-boots
Advertising: