How to get the boot time of Ubuntu?

msz

I am trying to find the boot time of Ubuntu.

The following tells me that my last reboot took 1 minutes 39 second.

$ last reboot
reboot   system boot  3.8.0-29-generic Wed Jan  8 14:55 - 16:35  (01:39)    
reboot   system boot  3.8.0-29-generic Wed Jan  8 14:38 - 14:55  (00:16)    
reboot   system boot  3.8.0-29-generic Wed Jan  8 14:27 - 14:38  (00:10)    
reboot   system boot  3.8.0-29-generic Wed Jan  8 11:07 - 14:27  (03:19)    
reboot   system boot  3.8.0-29-generic Wed Jan  8 00:03 - 00:31  (00:27)    
reboot   system boot  3.8.0-29-generic Tue Jan  7 10:39 - 14:22  (03:43)    
reboot   system boot  3.8.0-29-generic Mon Jan  6 10:51 - 18:42  (07:50)    
reboot   system boot  3.8.0-29-generic Sun Jan  5 22:08 - 00:19  (02:11)    
reboot   system boot  3.8.0-29-generic Sat Jan  4 11:34 - 15:47  (04:12)    

While when I looked at dmesg:

[   14.707210] type=1400 audit(1389173157.301:11): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1018 comm="apparmor_parser"

This shows that the total boot time is 14.707210. So as per the above two methods which is the actual boot time?

Malte Skoruppa

The first command, last reboot, does not tell you the boot time. It tells you at what times your system was running. For example, the first entry tells you that your system has been running from 14:55 to 16:35 on Wed 8. That's 1 hour and 39 minutes. It did not take your system 1 hour and 39 minutes to boot - hopefully ;)

The second command, dmesg, brings you closer to what you want to know, but since dmesg will continually output more system events while your system is running, it's not the tool of choice to measure boot time either.

If you really want to reliably measure your system boot time, I would recommend a tool such as bootchart.

See here: https://wiki.ubuntu.com/BootCharting

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to get Windows boot time?

분류에서Dev

How to get Windows boot time?

분류에서Dev

Ubuntu 18.04 hangs on boot. How can I get back to login screen?

분류에서Dev

How to enable numlock at boot time for login screen?

분류에서Dev

How to start an application at boot time or as a service

분류에서Dev

How to install Ubuntu on MacBook Pro as Dual Boot?

분류에서Dev

Double Ubuntu, How to specify which one to boot

분류에서Dev

How to run "fsck -y" on next boot in Ubuntu

분류에서Dev

How to dual-boot Windows and Ubuntu?

분류에서Dev

How the modules are loaded at boot time? And what is the order in which they loaded at boot time? How to change it?

분류에서Dev

How do you Set Custom Time in Ubuntu?

분류에서Dev

How to get the java compiler for ubuntu?

분류에서Dev

How to remove "Ubuntu" from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)

분류에서Dev

Is it usual Ubuntu 14.04.2 to take a long time at "random: nonblocking pool is initialized" step during boot process?

분류에서Dev

Very slow boot time ubuntu - A start job is running for Raise network interfaces

분류에서Dev

How to install Ubuntu on a GPT partition table without using EFI boot?

분류에서Dev

How to boot Ubuntu on a mac from external USB storage?

분류에서Dev

How to install BURG on Ubuntu 13.04 with Windows 8 dual boot?

분류에서Dev

How to partition hard disk for dual boot for Windows 7 and Ubuntu Linux

분류에서Dev

How to start teamspeak 3 on boot, ubuntu server 12.04

분류에서Dev

How to stop Ubuntu from changing numlock state on boot?

분류에서Dev

How to boot to command-line interface in Ubuntu 16.04

분류에서Dev

How can I install Ubuntu and Windows 10 as dual boot?

분류에서Dev

How to boot WUBI installed Ubuntu within Windows 8?

분류에서Dev

How Ubuntu/Linux defines value to force check disks/partitions on boot?

분류에서Dev

How can I make Ubuntu 15.10 run/boot normally?

분류에서Dev

How to install windows 8.1 boot loader which is damaged by ubuntu?

분류에서Dev

How to turn off the boot up beep of Ubuntu Live USB?

분류에서Dev

How to install Ubuntu dual boot with MacBook Pro refind?

Related 관련 기사

  1. 1

    How to get Windows boot time?

  2. 2

    How to get Windows boot time?

  3. 3

    Ubuntu 18.04 hangs on boot. How can I get back to login screen?

  4. 4

    How to enable numlock at boot time for login screen?

  5. 5

    How to start an application at boot time or as a service

  6. 6

    How to install Ubuntu on MacBook Pro as Dual Boot?

  7. 7

    Double Ubuntu, How to specify which one to boot

  8. 8

    How to run "fsck -y" on next boot in Ubuntu

  9. 9

    How to dual-boot Windows and Ubuntu?

  10. 10

    How the modules are loaded at boot time? And what is the order in which they loaded at boot time? How to change it?

  11. 11

    How do you Set Custom Time in Ubuntu?

  12. 12

    How to get the java compiler for ubuntu?

  13. 13

    How to remove "Ubuntu" from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)

  14. 14

    Is it usual Ubuntu 14.04.2 to take a long time at "random: nonblocking pool is initialized" step during boot process?

  15. 15

    Very slow boot time ubuntu - A start job is running for Raise network interfaces

  16. 16

    How to install Ubuntu on a GPT partition table without using EFI boot?

  17. 17

    How to boot Ubuntu on a mac from external USB storage?

  18. 18

    How to install BURG on Ubuntu 13.04 with Windows 8 dual boot?

  19. 19

    How to partition hard disk for dual boot for Windows 7 and Ubuntu Linux

  20. 20

    How to start teamspeak 3 on boot, ubuntu server 12.04

  21. 21

    How to stop Ubuntu from changing numlock state on boot?

  22. 22

    How to boot to command-line interface in Ubuntu 16.04

  23. 23

    How can I install Ubuntu and Windows 10 as dual boot?

  24. 24

    How to boot WUBI installed Ubuntu within Windows 8?

  25. 25

    How Ubuntu/Linux defines value to force check disks/partitions on boot?

  26. 26

    How can I make Ubuntu 15.10 run/boot normally?

  27. 27

    How to install windows 8.1 boot loader which is damaged by ubuntu?

  28. 28

    How to turn off the boot up beep of Ubuntu Live USB?

  29. 29

    How to install Ubuntu dual boot with MacBook Pro refind?

뜨겁다태그

보관