id
사용자와 그룹의 숫자 ID 및 이름을 확인하는 GNU coreutils 명령이다. 인수를 생략하면 현재 프로세스의 자격 증명을 표시한다.
Installation
- Debian / Ubuntu, RHEL / Fedora: 기본 시스템의
coreutils패키지에 포함된다. - macOS: BSD
id가 기본 제공된다. GNU 구현이 필요하면 Homebrew의coreutils를 설치하고gid또는gnubin경로를 사용한다. - Windows: 공식 GNU coreutils
winget패키지는 확인되지 않았다. WSL 환경에서는 Linux 배포판의coreutils를 사용한다.
id --version
Usage
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 옵션
Examples
id id alice id -u id -nG alice
Help
See Also
History
- 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.