Usage: id [OPTION]... [USERNAME]
Print user and group information for the specified USERNAME,
or (when USERNAME omitted) for the current user.
-a ignore, for compatibility with other versions
-Z, --context print only the security context of the current user
-g, --group print only the effective group ID
-G, --groups print all group IDs
-n, --name print a name instead of a number, for -ugG
-r, --real print the real ID instead of the effective ID, with -ugG
-u, --user print only the effective user ID
--help この使い方を表示して終了
--version バージョン情報を表示して終了
オプションが無い場合はユーザ情報のうち有用なものを表示.
Report id bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: id [OPTION]... [USERNAME]
Print user and group information for the specified USERNAME,
or (when USERNAME omitted) for the current user.
-a ignore, for compatibility with other versions
-Z, --context print only the security context of the current user
-g, --group print only the effective group ID
-G, --groups print all group IDs
-n, --name print a name instead of a number, for -ugG
-r, --real print the real ID instead of the effective ID, with -ugG
-u, --user print only the effective user ID
--help display this help and exit
--version output version information and exit
Without any OPTION, print some useful set of identified information.
Report id bugs to bug-coreutils@gnu.org
GNU coreutils home page:
ID(1) ID(1)
名前
id - 現在のユーザ ID 名とグループ ID 名を表示する
書式
id [-a]
説明
id は、現在の実ユーザ ID、実効ユーザ ID、実グループ ID、実効グループ ID
の名前または値を表示する。値に対応する エ ン ト リ が /etc/passwd や
/etc/group に存在しない場合は、対応する名前は表示されずに値だけが表示さ
れる。ユーザが同時に複数のグループのメンバーになれるシステムでは 、 -a
オプションを指定するとグループの集合が表示される。
ファイル
/etc/passwd - ユーザーアカウント情報
/etc/group - グループ情報
関連項目
getgid(2), getgroups(2), getuid(2)
著者
Julianne Frances Haugh
ID(1) User Commands ID(1)
NAME
id - print real and effective user and group IDs
SYNOPSIS
id [OPTION]... [USERNAME]
DESCRIPTION
Print user and group information for the specified USERNAME, or (when
USERNAME omitted) for the current user.
-a ignore, for compatibility with other versions
-Z, --context
print only the security context of the current user
-g, --group
print only the effective group ID
-G, --groups
print all group IDs
-n, --name
print a name instead of a number, for -ugG
-r, --real
print the real ID instead of the effective ID, with -ugG
-u, --user
print only the effective user ID
--help display this help and exit
--version
output version information and exit
Without any OPTION, print some useful set of identified information.
AUTHOR
Written by Arnold Robbins and David MacKenzie.
REPORTING BUGS
Report id bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa