How do I get the year to display using the lat command?
Posted on 2006-06-18
Using the followng command I can see when all the system reboots occurred but the date field does not include the year.
last | grep reboot
reboot system boot Sun Jun 18 08:23
reboot system boot Tue May 23 19:55
reboot system boot Tue Apr 18 11:15
reboot system boot Wed Jul 13 09:29
reboot system boot Tue Jul 12 10:07
reboot system boot Tue Jun 28 09:46
reboot system boot Tue Jun 14 09:08
Does anyone know how I can get the year to display. If not the date and times show the most recent at the top. Does anyone have a script that will look at the month and time and put in the year based on seeing something like Jun occurring again after Jul when viewing the output or is there a file or a command that will provide me with information on reboots that include year.
Thanks for your help