Add command for last reboots

This commit is contained in:
Anthony Rose 2019-12-16 15:15:49 +00:00
parent ecabcc9973
commit c820fc2bc2

View file

@ -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