How to view bootups extending 1 month

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?

0
задан 6 November 2015 в 14:07

1 ответ

last чтения файл /var/log/wtmp, но можно указать на него на другой файл. В Вашем случае, который был бы /var/log/wtmp.1.

Так, измененная команда, которую необходимо использовать,

last -x -f /var/log/wtmp.1 | grep shutdown
2
ответ дан 28 July 2019 в 09:33

Другие вопросы по тегам:

Похожие вопросы: