Arch Linux TipsΒΆ
This is a bunch of random tips on Arch Linux.
Check last rebootΒΆ
Arch does not have var/log/messages
or
/var/log/syslog
use journalctl
to find last
reboot time
https://wiki.archlinux.org/index.php/Systemd#Systemd_Journal
Here are two ways:
Check last reboot time using last the -x
flag display
system shutdown entries and run level changes
[root@nuc ~]# last -x | head | tac
brent pts/0 100.69.216.115 Thu Dec 22 19:54 - 22:56 (03:01)
brent pts/0 100.69.216.115 Tue Dec 27 07:01 - crash (4+17:38)
reboot system boot 6.0.12-arch1-1 Sun Jan 1 00:39 - 05:45 (7+05:05)
shutdown system down 6.0.12-arch1-1 Sun Jan 8 05:45 - 05:45 (00:00)
reboot system boot 6.0.12-arch1-1 Sun Jan 8 15:35 - 15:49 (00:14)
brent pts/0 100.69.216.115 Sun Jan 8 16:17 still logged in
Or check the last reboot time using journalctl
[root@nuc ~]# journalctl --list-boots
IDX BOOT ID FIRST ENTRY LAST ENTRY
-2 d98e34fab6854e7abf9264aa6e8d15a5 Sun 2023-01-08 05:45:50 +08 Sun 2023-01-08 15:34:55 +08
-1 1f30729fcfdc46c194564dba8a89ed47 Sun 2023-01-08 15:35:30 +08 Sun 2023-01-08 15:49:56 +08
0 01042053fbb04ea5a9c5deaed328c892 Sun 2023-01-08 15:50:16 +08 Sun 2023-01-08 17:01:27 +08
Comments
comments powered by Disqus