From c820fc2bc2ecb849b62b6939855129f83c591d89 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 16 Dec 2019 15:15:49 +0000 Subject: [PATCH] Add command for last reboots --- roles/home-cli/files/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 6788a39..057b7e9 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -204,6 +204,10 @@ xa () { done } +lastreboots () { + journalctl | grep -A 1 -- '-- Reboot --' | grep -v '^--' | awk '{print $1, $2, $3}' +} + if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ]; then alias dnf='yum' fi