mirror of https://github.com/CrimsonTome/tldr.git
29 lines
469 B
Markdown
29 lines
469 B
Markdown
|
# lslogins
|
||
|
|
||
|
> Show information about users on a Linux system.
|
||
|
> More information: <https://man7.org/linux/man-pages/man1/lslogins.1.html>.
|
||
|
|
||
|
- Display users in the system:
|
||
|
|
||
|
`lslogins`
|
||
|
|
||
|
- Display users belonging to a specific group:
|
||
|
|
||
|
`lslogins --groups={{groups}}`
|
||
|
|
||
|
- Display user accounts:
|
||
|
|
||
|
`lslogins --user-accs`
|
||
|
|
||
|
- Display last logins:
|
||
|
|
||
|
`lslogins --last`
|
||
|
|
||
|
- Display system accounts:
|
||
|
|
||
|
`lslogins --system-accs`
|
||
|
|
||
|
- Display supplementary groups:
|
||
|
|
||
|
`lslogins --supp-groups`
|