I am just beginning to play with Linux, so I have some very noob-ish questions.
I am using the Cygwin console on a Windows 7 computer, connecting to a server running a Gentoo kernel. At the moment, I am exploring some of the real basic commands: cp, pwd, ls, mkdir, less, du, etc. So far, so good.
However, I would also like to determine the last time the server was shut down. This task has me puzzled.
The “w” command gives:
12:07:49 up 52 days, 2:32, 1 user, load average: 0.06, 0.15, 0.17 USER TTY LOGIN@ IDLE JCPU PCPU WHAT supportM pts/0 09:47 0.00s 0.44s 0.29s sshd: supportManager_ [priv]
which seems to indicate the last reboot of the Gentoo box was 52 days ago.
'uptime' gives the same.
'ps -fp 1' gives:
UID PID PPID C STIME TTY TIME CMD root 1 0 0 Mar23 ? 00:00:01 init 
'who -b' gives the same.
'last reboot' gives
wtmp begins Wed May 9 15:23:19 2012
cat /proc/uptime gives:
On the other hand, if I read /boot/status/boot.log with the 'less' command, it gives:
Fri Jan 7 20:05:22 UTC 2000 - . Reason for previous shutdown/reboot: 10
So far, I have seen three different dates.
Shouldn’t the boot.log file confirm the last reboot as output by 'uptime' (March 26)?
And 'last reboot' gives yet another date (May 9)!?
Am I misinterpreting these values?
Which one is the correct one for the last time the Gentoo box was powered down and powered back up?