mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 20:50:02 +00:00
Update cheatsheets
This commit is contained in:
29
linux/getent
Normal file
29
linux/getent
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user