LinuxCommandLibrary

lslogins

displays detailed information about user accounts on a Linux system including

TLDR

Display all users

$ lslogins
copy
Display users in specific group
$ lslogins --groups [group]
copy
Display user accounts only
$ lslogins --user-accs
copy
Display system accounts
$ lslogins --system-accs
copy
Display last logins
$ lslogins --last
copy
Display supplementary groups
$ lslogins --supp-groups
copy

SYNOPSIS

lslogins [options] [username...]

DESCRIPTION

lslogins displays detailed information about user accounts on a Linux system including login times, password status, and group memberships. It provides more detail than traditional tools like who or w.

PARAMETERS

-g, --groups GROUPS

Show users in specified groups
-u, --user-accs
Show user (non-system) accounts only
-s, --system-accs
Show system accounts only
-L, --last
Show last login information
-G, --supp-groups
Show supplementary groups
-o, --output COLUMNS
Specify output columns
-r, --raw
Raw output format
-n, --noheadings
Suppress column headers

SEE ALSO

who(1), last(1), id(1), getent(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community