1836890 Members
2403 Online
110111 Solutions
New Discussion

System uptime

 
Khashru
Valued Contributor

System uptime

How can i check when the system was up. I want to see the date and time.
6 REPLIES 6
njia_1
Trusted Contributor

Re: System uptime

uptime command will tell you how long since the system booted up.

Khashru
Valued Contributor

Re: System uptime

i know that. i want something kile the system is up on 3-Mar-05.
njia_1
Trusted Contributor

Re: System uptime

alright, I do not know there is a command can tell you this but if you have a look at /var/adm/syslog/syslog.log file. The date and time of the first entry is a very good indication of when the system booted up.
Khashru
Valued Contributor

Re: System uptime

The command is who -b
James R. Ferguson
Acclaimed Contributor

Re: System uptime

Hi Khashru:

In addition to the aforementioned 'uptime' command, you can examine the history recorded in '/etc/shutdownlog' and '/etc/rc.log'. Perhaps together, all three pieces will give you what you seek.

Regards!

...JRF...
Geoff Wild
Honored Contributor

Re: System uptime

Also the last command:

last |grep reboot |head -1

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.