A simple script that displays user and group membership information in a human easy to read format.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-21 19:31:51 +02:00
LICENSE Initial commit 2026-05-21 17:30:17 +00:00
niceid Initial commit. 2026-05-21 19:31:51 +02:00
README.md Initial commit. 2026-05-21 19:31:51 +02:00

niceid

A simple Bash script that displays user and group membership information in a human easy to read format.

Description

niceid formats the output of the id command to make group membership easier to read. It also supports listing all members of a specific group.

Usage

# Show current user's info
niceid

# Show specific user's info
niceid <username>

# List all members of a group
niceid group <groupname>

Examples

# Display current user
$ niceid
uid=1000(pale)
	docker (999)
	users (100)
	wheel (10)

# Display specific user
$ niceid root
uid=0(root)
	root (0)

# List group members
$ niceid group docker
gid=999(docker)
	pale
	user2

Installation

Make the script executable and place it in your PATH:

chmod +x niceid
sudo mv niceid /usr/local/bin/