getent
Get entries from Name Service Switch libraries. More information: https://manned.org/getent.
- Get list of all groups:
getent group - See the members of a group:
getent group {{group_name}} - Get list of all services:
getent services - Find a username by UID:
getent passwd 1000 - Perform a reverse DNS lookup:
getent hosts {{host}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.