Add command for last reboots
This commit is contained in:
parent
ecabcc9973
commit
c820fc2bc2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue