「systemd-cgls」-

  LINUX MANUAL PAGES
systemd-cgls – Recursively show control group contents

命令语法格式


systemd-cgls [OPTIONS…] [CGROUP…]

命令描述


systemd-cgls recursively shows the contents of the selected Linux control group hierarchy in a tree. If arguments are specified, shows all member processes of the specified control groups plus all their subgroups and their

members. The control groups may either be specified by their full file paths or are assumed in the systemd control group hierarchy. If no argument is specified and the current working directory is beneath the control group

mount point /sys/fs/cgroup, shows the contents of the control group the working directory refers to. Otherwise, the full systemd control group hierarchy is shown.

By default, empty control groups are not shown.

命令支持的选项及含义


The following options are understood:

–all
Do not hide empty control groups in the output.

-l, –full
Do not ellipsize process tree members.

-k
Include kernel threads in output.

-M MACHINE, –machine=MACHINE
Limit control groups shown to the part corresponding to the container MACHINE.

-h, –help
Print a short help text and exit.

–version
Print a short version string and exit.

–no-pager
Do not pipe output into a pager.

退出状态


On success, 0 is returned, a non-zero failure code otherwise.

相关手册


systemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1)

参考文献


  • man 1 systemd-cgls, Version systemd 232

更新日志


  • 07/26/2018 创建文章