id
Print user and group ID. toybox
On Linux 3 Sigma rules name it
Linux
Print user and group ID. !-Z Show only security context
id [-Ggnru!Z] [USER...]
-GShow all group IDs-gShow only the effective group ID-nPrint names instead of numeric IDs (to be used with -Ggu)-rShow real ID instead of effective ID-uShow only the effective user IDSeveral platforms
Display current user and group identity.
Display current user's ID (UID), group ID (GID), and groups to which they belong
idIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display the current user identity
id --user --nameIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display the current user identity as a number
id --userIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display the current primary group identity
id --group --nameIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display the current primary group identity as a number
id --groupIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display all groups the current user belongs to
id --groups --nameIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Display an arbitrary user's ID (UID), group ID (GID), and groups to which they belong
id usernameIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad
Skip name lookup and specify the UID number explicitly
id +uid_numberIdentifyTrips 2 Sigma rules: lowLocal System Accounts Discovery - MacOs by Alejandro Ortuno, oscd.community; lowLocal System Accounts Discovery Attempt - Linux by Alejandro Ortuno, oscd.community, CheraghiMilad