Forrest logo
tool overview
On this page you find all important commands for the CLI tool systemd-analyze. If the command you are looking for is missing please ask our AI.

systemd-analyze

systemd-analyze is a command-line tool used in Linux systems that provides various functionalities for managing the systemd initialization system. It allows users to analyze and measure the system's boot time and identify services that contribute to the boot process. systemd-analyze can display details such as the overall boot time, time taken by each service, and critical chain of services.

By simply running "systemd-analyze" in the terminal, users can obtain a summary of the system's boot time, including how much time was spent in the kernel and userspace. Additionally, it can provide information about the time taken for specific units and even display a plot of the overall boot process timeline.

It also offers the ability to enable system call tracing to analyze the runtime behavior of processes. This feature aids in debugging specific services or pinpointing performance bottlenecks during boot or runtime.

Furthermore, systemd-analyze has diagnostic capabilities, such as identifying services that didn't start properly or flagging potential issues related to dependencies or resource allocation.

In summary, systemd-analyze is a powerful command-line utility that assists in boot time optimization, systemd service analysis, and troubleshooting system initialization issues in Linux systems.

List of commands for systemd-analyze:

  • systemd-analyze:tldr:254c8 systemd-analyze: Show security scores of running units.
    $ systemd-analyze security
    try on your machine
    explain this command
  • systemd-analyze:tldr:40bde systemd-analyze: List all running units, ordered by the time they took to initialize.
    $ systemd-analyze blame
    try on your machine
    explain this command
  • systemd-analyze:tldr:4b33a systemd-analyze: Print a tree of the time-critical chain of units.
    $ systemd-analyze critical-chain
    try on your machine
    explain this command
  • systemd-analyze:tldr:a700e systemd-analyze: Create an SVG file showing when each system service started, highlighting the time that they spent on initialization.
    $ systemd-analyze plot > ${filename-svg}
    try on your machine
    explain this command
  • systemd-analyze:tldr:ccda2 systemd-analyze: Plot a dependency graph and convert it to an SVG file.
    $ systemd-analyze dot | dot -T${svg} > ${filename-svg}
    try on your machine
    explain this command
tool overview