671 B
671 B
systemctl whoami
프로세스가 속한 유닛을 출력. PID을 지정하지 않으면,
systemctl이 실행된 현재 유닛을 표시. 더 많은 정보: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#whoami%20%5BPID%E2%80%A6%5D.
- 현재 셸(systemctl이 실행된 환경)이 속한 유닛 출력:
systemctl whoami
- 사용자 서비스 매니저에서 현재 셸이 속한 유닛 출력 (로그인 세션에서 관리되는 서비스):
systemctl whoami --user
- 특정 프로세스가 속한 유닛 출력:
systemctl whoami {{pid}}
- 여러 프로세스가 속한 유닛 출력:
systemctl whoami {{pid1 pid2 ...}}