← 返回命令列表

Linux command

systemd-analyze 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Print

systemd-analyze

List

systemd-analyze blame

Print

systemd-analyze critical-chain

Create

systemd-analyze plot > [path/to/file.svg]

Plot

systemd-analyze dot | dot -T svg > [path/to/file.svg]

Show

systemd-analyze security

View

systemd-analyze cat-config udev/rules.d --tldr

说明

systemd-analyze provides detailed information about system boot-up performance and systemd unit configurations. It helps identify slow-starting services and debug boot issues. The blame and critical-chain commands are particularly useful for optimizing boot time by identifying bottlenecks. The security command audits unit sandboxing configurations.

参数

blame
List units by startup time
critical-chain
Show critical path of unit startup
plot
Generate SVG plot of boot sequence
dot
Generate dependency graph in DOT format
security
Analyze security and sandboxing settings
verify
Verify unit file syntax
cat-config
Show merged configuration files
time
Show boot timing summary (default)

FAQ

What is the systemd-analyze command used for?

systemd-analyze provides detailed information about system boot-up performance and systemd unit configurations. It helps identify slow-starting services and debug boot issues. The blame and critical-chain commands are particularly useful for optimizing boot time by identifying bottlenecks. The security command audits unit sandboxing configurations.

How do I run a basic systemd-analyze example?

Run `systemd-analyze` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does blame do in systemd-analyze?

List units by startup time