To check Linux boot time on a system that uses systemd, run systemd-analyze time in a terminal. It reports how long the firmware, boot loader, kernel, and userspace took when those timings are available; use systemd-analyze blame and systemd-analyze critical-chain to investigate which startup work contributed to the delay.
What Linux boot time measures
“Boot time” can mean several different things. You might mean the interval from pressing the power button until the login screen appears, the time from the kernel starting until the system is ready, or the time one service takes to start. These are related measurements, but they are not interchangeable. A command that reports Linux startup may not include time spent waiting in a computer’s firmware setup or at a boot-loader menu.
On many desktop and server distributions, systemd records startup timing information and provides tools to inspect it. Its measurements can separate firmware, boot-loader, kernel, initrd (the temporary early-boot environment), and userspace phases. Not every machine or boot path supplies every phase, so a missing or zero-looking field does not necessarily mean that phase took no time.
The distinction matters when comparing results. A machine can reach the Linux userspace quickly but spend a long time in firmware, or Linux can start promptly while a graphical login service takes longer. Decide what endpoint matters to you—kernel startup, a text login, a desktop, or a particular application—before judging whether a boot is slow.
Check the current boot with systemd
Open a terminal and enter:
systemd-analyze time
The output commonly includes phrases such as “kernel” and “userspace,” and may also show firmware, loader, or initrd durations. For example, an illustrative result might report a kernel phase of several seconds and a userspace phase of a few more seconds. The exact format varies by systemd version and hardware, so interpret the labels your machine actually prints rather than assuming every installation reports the same fields.
Run the command after the system has completed its boot. It describes the boot currently in progress, not a prediction of how long the next boot will take. Startup duration can vary from one boot to another because of hardware initialization, device availability, network conditions, filesystem checks, updates, and services that wait for external resources.
If the command is unavailable, check whether the distribution uses systemd and whether its tools are installed. The command is not a universal Linux utility: systems using another init system, or minimal installations without systemd’s analysis tools, need different methods.
Find services that take time
To see how long systemd services took to start, run:
systemd-analyze blame
The output is a list of units, usually with the longest measured activation times first. A service taking several seconds may be worth investigating, especially if it is something you do not use. But the list is not a ranking of which services delayed the login screen by that exact amount. Systemd starts many units in parallel, and a service can take time while other work proceeds. Adding all the listed durations together does not give total boot time.
Use the list as a lead, not as a verdict. A long-running service might not be on the path that blocks the system from becoming usable. Conversely, a short service may be important if another required service must wait for it. Before changing a unit, learn what depends on it and what feature it provides. Disabling a network, storage, security, or hardware service just to reduce a reported number can break expected behavior.
Trace the startup critical path
For a better view of dependencies and delays, run:
systemd-analyze critical-chain
This displays a chain of units that systemd identifies as relevant to reaching a target, with timing information that helps show where startup waited. A unit’s position and timing should be read in context: parallel tasks may overlap, and a slow service outside the displayed chain may have little effect on the point at which the system becomes ready. You can inspect a particular target or unit by supplying its name, for example systemd-analyze critical-chain graphical.target, if that target is appropriate on your installation.
To visualize unit timing, systemd can also generate a boot chart:
systemd-analyze plot > boot.svg
Open the resulting SVG in a browser or image viewer. The chart is useful for seeing overlapping activity and relationships, but it is still a view of systemd’s recorded startup, not necessarily a full account of time spent before the operating system starts.
Check earlier boots and startup logs
To list boots recorded in the system journal, use:
journalctl --list-boots
If persistent journal storage is enabled and the relevant entries have not been removed, select an earlier boot with its index or identifier. For example, journalctl -b -1 requests messages from the previous boot, while journalctl -b shows the current boot. Journal retention settings vary, so older records may not be available. A reboot after an update can also differ significantly from an ordinary restart.
For a timestamp-oriented view of the current boot, try:
journalctl -b -o short-monotonic
Monotonic timestamps show elapsed time from the start of the boot’s clock rather than relying on the wall clock. They can help locate gaps or identify when a service reported that it started. Journal messages do not automatically tell you when a desktop became usable, however; that endpoint depends on the graphical environment and the user’s session.
You can also inspect kernel messages with dmesg. Its usual timestamps are relative to kernel startup; dmesg -T attempts to display human-readable times, but those converted wall-clock values are not as reliable for precise boot comparisons. Access to kernel logs may be restricted for ordinary users on some distributions. For systemd-managed startup, journal output and systemd’s analysis tools are generally more useful for understanding service activation.
Commands that answer a different question
Some familiar commands report when the system started or how long it has been running, rather than how long startup took:
uptimereports elapsed time since boot, along with load information. It does not measure the interval from pressing the power button to a usable desktop.uptime -sprints an estimated boot time as a date and time. It is a start-time reference, not a boot-duration report.cat /proc/uptimeexposes elapsed time since the kernel booted (and an idle-time value). It does not include earlier firmware or boot-loader delays.last -x rebootcan show recorded reboot events on systems that maintain the relevant accounting log. It is useful for history, but does not by itself calculate how long each startup took.
These commands are useful when the question is “When did this machine last start?” or “How long has it been running?” For “How many seconds did Linux take to boot?” use a startup measurement that records duration, such as systemd-analyze on a systemd system.
Systems without systemd
Linux does not require systemd, and boot analysis depends on the init system and distribution. A machine using OpenRC, runit, or another init may have its own service-status or boot-logging tools. Consult the distribution’s documentation for the supported method rather than installing systemd analysis tools and expecting them to describe a different init system’s startup.
When no dedicated timing report is available, logs may still help establish when the kernel began and when key services became ready. The limits are important: log timestamps can be absent, use a different clock, or begin only after part of the startup has already happened. A stopwatch can measure the user-visible interval, but it is affected by human reaction time and by the chosen start and end points. For repeatable comparisons, define those points and use the same method on every test.
Why boot-time numbers differ
Two reports can both be accurate yet show different durations because they measure different boundaries. A firmware screen may add several seconds before the kernel runs. A boot-loader timeout can add time if the system waits for a menu choice. A systemd report may focus on the operating-system phases after those steps, while a person timing from the power button includes them.
Conditions also matter. The first boot after installing an update may run extra setup tasks. A laptop may wait for a slow or unavailable device; a server may wait for networking or mounted storage. Disk encryption requires an unlock step, and a boot menu may deliberately pause to let the user choose an operating system. Those waits can be expected behavior rather than a fault.
For a fair before-and-after comparison, perform several boots under similar conditions, keep the same login endpoint, and note whether the machine was restarted or powered on from a fully off state. Fast startup or suspend features can change what “boot” means. Avoid comparing a kernel-to-userspace figure on one machine with a button-to-desktop stopwatch measurement on another.
What to do when startup is slow
Begin by identifying the phase that is actually long. If the firmware or loader accounts for much of the wait, changing Linux services is unlikely to solve it. Check firmware settings and boot-menu delays cautiously; changing boot order or hardware initialization can affect recovery and device availability. If userspace is the slow phase, inspect the critical chain and relevant journal messages before altering services.
Practical next steps include:
- Look for repeated timeouts or failed dependencies in the journal, not just a large duration in the blame list.
- Check whether a slow unit is necessary and what depends on it before disabling or masking it.
- Investigate obvious causes such as a missing network share, a failing disk, or a device that takes a long time to respond.
- Keep a record of the original timings and configuration so that changes can be reversed if they cause problems.
Do not remove services simply because they appear near the top of a list. The goal is a reliable system that reaches the task you need, not the smallest possible number in a timing report. If startup recently became slow, compare logs from a normal boot and a slow one; a new error or timeout is often more informative than a generic “boot time” total.
Frequently Asked Questions
How do I check Linux boot time in seconds?
On a systemd-based distribution, run systemd-analyze time. Read the kernel and userspace values, and any firmware or loader values shown. The report’s scope may not include the whole interval from pressing the power button to reaching the desktop.
How can I see which Linux service is slow to start?
Run systemd-analyze blame to list measured service activation durations, then use systemd-analyze critical-chain to see whether relevant units are on a startup path. A long duration alone does not prove that the service delayed login.
Does uptime show how long Linux took to boot?
No. uptime shows how long the system has been running since boot. It does not measure how long startup took. uptime -s gives an estimated start date and time, not a duration.
Can I check boot time from the previous session?
Try journalctl --list-boots, then inspect an available earlier boot with a command such as journalctl -b -1. This depends on the journal retaining earlier boot records; systems that do not keep persistent logs may have only the current boot.
Why is systemd-analyze time different from my stopwatch?
The command reports operating-system startup phases available to systemd, while a stopwatch may include firmware, a boot-menu pause, encryption unlock, and the wait for a desktop or application. Define the same start and finish points before comparing measurements.