Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to get the time from power on system to showing user login view in Linux, how to do? Can it work only with shell?

share|improve this question

migrated from stackoverflow.com May 16 '11 at 19:34

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Take a look at bootchart: http://www.bootchart.org/index.html Several Windows/Linux power on to desktop speed trails mention this as a neat way of finding out what your linux system is doing. Also see /proc/stat:

perl -ne 'print scalar localtime $1 if /^btime (\d+)/' /proc/stat
share|improve this answer
    
BootChart looks good,Thank you. –  Genx May 17 '11 at 13:42
  • Get a stopwatch.
  • Start it when you press the power on button.
  • Stop it when you see the login screen.
  • Make a note of the time.

Seriously though, why not put a question like this into Google? There's loads of relevant links, like this one: http://elinux.org/Boot_Time

Boot Chart seems to be popular too: http://www.bootchart.org/

share|improve this answer
    
Thank you for your link and the google advice. –  Genx May 17 '11 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.