How To Install Id?

How To Install Id?

id

Display current user and group identity.

Maintainer: Michael Stone



Section: utils

Install id

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Display current user and group identity.

How to use id?

Below are few example commands for id that you can use in the terminal.

Display current user's id (UID), group id (GID) and groups to which they belong:
idClick to copy
Display the current user identity as a number:
id -uClick to copy
Display the current group identity as a number:
id -gClick to copy
Display an arbitrary user's id (UID), group id (GID) and groups to which they belong:
id usernameClick to copy
To install the latest version of id in your favorite operating system just copy the id installation command from above and paste it into terminal. It will download and install the latest version of id 2026 package in your OS.