last command

hello

I'd like to ask if there's a way to check the systems reboot history.
the command

last reboot

only shows the last reboot of the system

Check the system logs

how can i do that?

Try this:

# last | grep ^reboot
reboot   system boot  3.3.2-6.fc16.i68 Tue May  1 19:24 - 00:47  (05:23)    
reboot   system boot  3.3.2-6.fc16.i68 Tue May  1 17:16 - 19:23  (02:06)    
reboot   system boot  3.3.2-6.fc16.i68 Mon Apr 30 09:16 - 15:56 (1+06:40)   
reboot   system boot  3.3.2-6.fc16.i68 Sun Apr 29 10:29 - 08:55  (22:26)    
reboot   system boot  3.3.2-6.fc16.i68 Sat Apr 28 20:25 - 10:09  (13:44) 

On fedora 16 works fine.

it doesn't give me any output..
maybe it saves it somewhere?Or it doesnt work for me..:frowning:

Did you run command without "#" ?? What kind of OS are you working on ?

What is your role on your system? Are you a sysadmin ? What is your OS and version?

yes i tried it without the #.
I'm not administrator just a user,it's a college system
It's Linux and the kernel is 2.6.24-31-generic
i686 GNU/Linux

Try on other system. This is probably Ubuntu Hardy, and if it works long time without reboot, there will be no data to print from logs :wink:

yes but the thing is the exercise should run on the specific system so I figured
it has to be something to show the reboot history here..
Anyway,thanks a lot for your help:b: