Today I Learned
Search…
Find boot-up time in linux 🐧
Posted on 18 Oct, 2020
We can achieve this using the systemd service. Just run this
1
systemd-analyze
Copied!
Demo:
1
Startup finished in 36.655s (kernel) + 58.030s (userspace) = 1min 34.685s
2
graphical.target reached after 57.709s in userspace
Copied!
The graphical.target specifies how long it took to reach to the log-in screen.

Other tricks

  1. 1.
    You can also plot service initializations in a SVG graph.
1
systemd-analyze plot > demo.svg
Copied!
  1. 1.
    Check which service takes most of the time.
1
systemd-analyze blame
Copied!
Copy link
Edit on GitHub
Contents
Other tricks