systemctl list-units

1 개요[ | ]

systemctl list-units

2 cat[ | ]

Console
Copy
root@localhost:~# systemctl list-units | cat
  UNIT                                                                                      LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device                               loaded active plugged   Virtio network device
  sys-devices-pci0000:00-0000:00:04.0-virtio1-block-vda-vda1.device                         loaded active plugged   /sys/devices/pci0000:00/0000:00:04.0/virtio1/block/vda/vda1
...
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
221 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Console
Copy
root@localhost:~# systemctl | cat
  UNIT                                                                                      LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-pci0000:00-0000:00:03.0-virtio0-net-eth0.device                               loaded active plugged   Virtio network device
  sys-devices-pci0000:00-0000:00:04.0-virtio1-block-vda-vda1.device                         loaded active plugged   /sys/devices/pci0000:00/0000:00:04.0/virtio1/block/vda/vda1
...
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
221 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

3 grep[ | ]

Console
Copy
root@localhost:~# systemctl list-units | grep running
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  init.scope                                                                                loaded active running   System and Service Manager
  session-6488.scope                                                                        loaded active running   Session 6488 of User root
  apache-htcacheclean.service                                                               loaded active running   Disk Cache Cleaning Daemon for Apache HTTP Server
...
Console
Copy
root@localhost:~# systemctl | grep running
  proc-sys-fs-binfmt_misc.automount                                                         loaded active running   Arbitrary Executable File Formats File System Automount Point
  init.scope                                                                                loaded active running   System and Service Manager
  session-6488.scope                                                                        loaded active running   Session 6488 of User root
  apache-htcacheclean.service                                                               loaded active running   Disk Cache Cleaning Daemon for Apache HTTP Server
...

4 같이 보기[ | ]