id
Display current user and group identity. More information: <https://www.gnu.org/software/coreutils/id>.
Install
- All systems
-
curl cmd.cat/id.sh
- Debian
-
apt-get install coreutils
- Ubuntu
-
apt-get install coreutils
- Alpine
-
apk add coreutils
- Arch Linux
-
pacman -S coreutils
- Kali Linux
-
apt-get install coreutils
- CentOS
-
yum install coreutils
- Fedora
-
dnf install coreutils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/id
- Docker
-
docker run cmd.cat/id id
powered by Commando
Display current user and group identity. More information: <https://www.gnu.org/software/coreutils/id>.
-
Display current user's ID (UID), group ID (GID) and groups to which they belong:
id
-
Display the current user identity as a number:
id -u
-
Display the current group identity as a number:
id -g
-
Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:
id username
© tl;dr; authors and contributors