id

사용자와 그룹의 숫자 ID 및 이름을 확인하는 GNU coreutils 명령이다. 인수를 생략하면 현재 프로세스의 자격 증명을 표시한다.

  • Debian / Ubuntu, RHEL / Fedora: 기본 시스템의 coreutils 패키지에 포함된다.
  • macOS: BSD id가 기본 제공된다. GNU 구현이 필요하면 Homebrew의 coreutils를 설치하고 gid 또는 gnubin 경로를 사용한다.
  • Windows: 공식 GNU coreutils winget 패키지는 확인되지 않았다. WSL 환경에서는 Linux 배포판의 coreutils를 사용한다.
id --version
  • id [OPTIONS] [USER]
  • -u, –user: 사용자 ID만 출력
  • -g, –group: 기본 그룹 ID만 출력
  • -G, –groups: 모든 그룹 ID 출력
  • -n, –name: -u, -g, -G와 함께 숫자 대신 이름 출력
  • -r, –real: effective ID 대신 real ID 출력
  • -Z, –context: 보안 컨텍스트만 출력
  • -z, –zero: 항목을 NUL로 구분
  • -a: 호환성을 위해 존재하지만 무시되는 legacy 옵션
id
id alice
id -u
id -nG alice

+ id --help

id --help

+

  • codex:: 2026-08-10 Migrated to the language head layout and expanded usage, options, examples, and installation notes while preserving the Fedora help-era option coverage.
  • /home/u613600155/domains/cli.zerotymer.net/public_html/data/pages/id/ko.txt
  • 마지막으로 수정됨: 2026/08/10 13:20
  • (바깥 편집)