Linux Unix/Command
[ Linux ] systemctl - service 목록 보기
Soso Dev
2024. 10. 31. 03:20
반응형
systemctl
명령어를 사용하여 현재 시스템에서 실행 중인 서비스와 상태를 확인할 수 있습니다. 다음 명령어들을 통해 서비스 목록을 확인할 수 있습니다.
- 전체 서비스 목록 확인:
systemctl list-units --type=service
- 실행 중인 서비스 목록만 확인:
systemctl list-units --type=service --state=running
- 비활성화된 서비스 목록만 확인:
systemctl list-units --type=service --state=inactive
- 모든 서비스 포함 상태 확인 (활성화/비활성화 포함):
systemctl list-units --type=service --all
이 명령어들은 systemctl
의 다양한 옵션을 사용하여 필요한 상태의 서비스 목록을 조회할 수 있게 해 줍니다.
반응형