Menu Close
13.3. 시스템 서비스 나열
현재 로드된 모든 서비스 유닛과 사용 가능한 모든 서비스 유닛의 상태를 나열할 수 있습니다.
절차
현재 로드된 서비스 유닛을 모두 나열하려면 다음을 입력합니다.
$ systemctl list-units --type service
UNIT LOAD ACTIVE SUB DESCRIPTION abrt-ccpp.service loaded active exited Install ABRT coredump hook abrt-oops.service loaded active running ABRT kernel log watcher abrtd.service loaded active running ABRT Automated Bug Reporting Tool ---- systemd-vconsole-setup.service loaded active exited Setup Virtual Console tog-pegasus.service loaded active running OpenPegasus CIM Server LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 46 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'기본적으로
systemctl list-units
명령은 활성 유닛만 표시합니다. 각 서비스 유닛 파일에 대해 명령은 다음을 표시합니다.-
UNIT
: 전체 이름 -
LOAD
: 유닛 파일이 로드되었는지 여부 -
E
gressIP \SUB
: 상위 레벨 및 낮은 수준의 단위 파일 활성화 상태 -
설명
: 간단한 설명
-
상태에 관계없이 로드된 유닛을 모두 나열하려면
--all
또는-a
명령줄 옵션을 사용하여 다음 명령을 입력합니다.$ systemctl list-units --type service --all
사용 가능한 모든 서비스 장치의상태(활성화/비활성화됨)를 나열하려면 다음을 입력합니다.
$ systemctl list-unit-files --type service
UNIT FILE STATE abrt-ccpp.service enabled abrt-oops.service enabled abrtd.service enabled ... wpa_supplicant.service disabled ypbind.service disabled 208 unit files listed.각 서비스 유닛에 대해 이 명령은 다음을 표시합니다.
-
파일
이름 : 전체 이름 -
STATE
: 서비스 유닛이 활성화 또는 비활성화되었는지 여부
-
추가 리소스