← 返回命令列表

Linux command

lscgroup 命令

文件

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

常用示例

List all cgroups

lscgroup

List specific controller

lscgroup [cpu]

List specific cgroup

lscgroup [cpu:/mygroup]

Show all controllers

lscgroup -a

List cgroup hierarchy

lscgroup [memory]

说明

lscgroup lists cgroups in the system. Cgroups control resource allocation for processes. The tool shows the cgroup hierarchy for controllers like cpu, memory, and blkio.

参数

-a
Show all controllers.
-g _GROUP_
Show specific group.
--help
Display help information.

FAQ

What is the lscgroup command used for?

lscgroup lists cgroups in the system. Cgroups control resource allocation for processes. The tool shows the cgroup hierarchy for controllers like cpu, memory, and blkio.

How do I run a basic lscgroup example?

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

What does -a do in lscgroup?

Show all controllers.