I am trying to view в log of previous bootups. The following command does exactly what I want it to do
last -x | grep shutdown
with the only limitation being that it only displays events within the current month. Being November 6, this gives я only 6 days to see.
I would like to view events from say, October 30th or earlier. Is there any way to do this?
last
чтения файл /var/log/wtmp
, но можно указать на него на другой файл. В Вашем случае, который был бы /var/log/wtmp.1
.
Так, измененная команда, которую необходимо использовать,
last -x -f /var/log/wtmp.1 | grep shutdown