snippetbashTip
systemd-analyze — Analyze and debug system manager. Show timing details about the boot process of units (services, mou
Viewed 0 times
systemd-analyzecommandandanalyzeclidebugmanagersystem
linux
Problem
How to use the
systemd-analyze command: Analyze and debug system manager. Show timing details about the boot process of units (services, mount points, devices, sockets). More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-analyze.html>.Solution
systemd-analyze — Analyze and debug system manager. Show timing details about the boot process of units (services, mount points, devices, sockets). More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-analyze.html>.Print the last system startup time:
systemd-analyzeList all running units, ordered by the time they took to initialize:
systemd-analyze blamePrint a tree of the time-critical chain of bootup units:
systemd-analyze critical-chainCreate an SVG file showing when each system service started, highlighting the time that they spent on initialization:
systemd-analyze plot > {{path/to/file.svg}}Plot a dependency graph and convert it to an SVG file:
systemd-analyze dot | dot -T {{svg}} > {{path/to/file.svg}}Show security scores of running units:
systemd-analyze securityView all udev rules together without showing comments:
systemd-analyze cat-config udev/rules.d --tldrCode Snippets
Print the last system startup time
systemd-analyzeList all running units, ordered by the time they took to initialize
systemd-analyze blamePrint a tree of the time-critical chain of bootup units
systemd-analyze critical-chainCreate an SVG file showing when each system service started, highlighting the time that they spent on initialization
systemd-analyze plot > {{path/to/file.svg}}Plot a dependency graph and convert it to an SVG file
systemd-analyze dot | dot -T {{svg}} > {{path/to/file.svg}}Context
tldr-pages: linux/systemd-analyze
Revisions (0)
No revisions yet.