Take a batch snapshot of cgroup CPU, memory, and I/O usage
Build a paste-ready command, then review its compatibility and effects before running it.
systemd-cgtop --batch --iterations=1 --depth=<count>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementssystemd-cgtopsystemd-cgtop must be installed and available on PATH.
Version supportsystemd-cgtop Current supported releasesVerified for linux using bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsControl Group Tasks %CPU Memory Input/s Output/sRepresentative successful output; values vary with the selected target and system state.
Known errorssystemd-cgtop: command not foundsystemd-cgtop is missing or is not available on PATH.
Verifysystemd-cgtop --batch --iterations=1 --depth={{count}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01systemd-cgtopCommandRuns the systemd-cgtop stage of this one-liner.
02--batchOptionConfigures systemd-cgtop with the --batch option.
03--iterations=1OptionConfigures systemd-cgtop with the --iterations=1 option.
04--depth=<count>OptionConfigures systemd-cgtop with the --depth=<count> option.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
systemd-cgtop --batch --iterations=1 --depth=3
Example output
Control Group Tasks %CPU Memory Input/s Output/s
/ 412 24.8 7.8G - -
/system.slice/docker.service 91 18.1 3.2G 4.2M 18.7M
/user.slice 64 3.4 1.1G - -
Illustrative output — exact values vary by system and data.
Official sources