Forrest logo
back to the lslogins tool

lslogins:tldr:d3ee0

lslogins: Display users in the system.
$ lslogins
try on your machine

The "lslogins" command is used in Linux systems to list login information of users. It provides details about user accounts stored in the system's login database. When the command is executed, it displays a table-like output containing information such as username, UID (user identifier), GID (group identifier), home directory, shell, and last login time.

Here's an explanation of the columns displayed by "lslogins":

  • Username: The name of the user account.
  • UID: User Identifier, a unique numeric identifier associated with each user account.
  • GID: Group Identifier, the numeric identifier of the primary group to which the user belongs.
  • gecos: General Electric Comprehensive Operating System, a field that typically includes the user's full name and additional information.
  • Home directory: The path to the user's home directory.
  • Shell: The default shell used by the user when they log in.
  • Last login time: The date and time when the user last logged in.

By using additional options, you can customize the output of the "lslogins" command and obtain specific information about user accounts.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lslogins tool