-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux systemd cgls Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to systemd-cgls on Linux, covering Arch Linux, CachyOS, and other distributions including control group listing, cgroup hierarchy, and system organization.
- Understanding systemd-cgls
- systemd-cgls Basics
- Control Group Hierarchy
- Cgroup Information
- Troubleshooting
systemd-cgls lists control groups.
Uses:
- List cgroups: Show control groups
- Hierarchy: View cgroup hierarchy
- System organization: See system organization
- Cgroup structure: View cgroup structure
Why it matters:
- System understanding: Understand system structure
- Cgroup management: Manage control groups
- System organization: See system organization
Basic usage:
# List all control groups
systemd-cgls
# Shows cgroup treePath cgroups:
# Specific path
systemd-cgls /system.slice
# Shows cgroups under pathHierarchical view:
# Tree format
systemd-cgls
# Shows cgroup hierarchyAll slices:
# All system slices
systemd-cgls
# Shows:
# - system.slice
# - user.slice
# - machine.sliceShow processes:
# Show process IDs
systemd-cgls --all
# Shows PIDs in cgroupsMachine-readable:
# Machine format
systemd-cgls --machine
# JSON outputCheck systemd:
# systemd-cgls is part of systemd
# Usually pre-installed on systemd systems
# Check systemd
systemctl --versionThis guide covered systemd-cgls usage, control group listing, and system organization for Arch Linux, CachyOS, and other distributions.
- systemd-cgtop Guide - Monitor cgroups
- System Configuration - System setup
-
systemd-cgls Documentation:
man systemd-cgls
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.