A simple script that displays user and group membership information in a human easy to read format.
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| LICENSE | ||
| niceid | ||
| README.md | ||
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/