1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 19:35:33 +02:00

getent command was added

This commit is contained in:
slash3b 2016-02-20 01:09:38 +02:00
parent 777cb8c67d
commit 5de5f06ffb
2 changed files with 24 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# visudo
> Safely edit the sudoers file. Command requires super user privilegies.
> Safely edit the sudoers file.
- Edit sudoers file:

23
pages/linux/getent.md Normal file
View file

@ -0,0 +1,23 @@
# getent
> Get entries from Name Service Switch libraries.
- Get list of all groups:
`getent group`
- See the members of a group:
`getenet 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}}`