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:
parent
777cb8c67d
commit
5de5f06ffb
2 changed files with 24 additions and 1 deletions
|
@ -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
23
pages/linux/getent.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue