LOGINS(1)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… LOGINS πŸ’…

okok so bestie, gather round, because logins is genuinely one of those tiny little utilities that ate and left no crumbs. It's the logins utility from section 1 of the manual β€” a general command β€” and its whole personality is: display account information. That's it. That's the gig. ✨

No cap, it's like a little filter-and-peek machine for user and system accounts, and once you get the flags down you'll be obsessed. 🫢


🌸 SYNOPSIS 🌸

logins [-admopstux] [-g groups] [-l logins]

literally just pick your flags and go, iykyk πŸ¦‹


✨ DESCRIPTION ✨

The logins utility displays information about user and system accounts. cute, simple, iconic. πŸ‘‘

Here are all the options, bestie β€” and yes, there are a lot, but you're gonna slay them all:

  • -a β€” Display information about the password change and account expiration times for each account. (the "when does this expire" tea β˜•)
  • -d β€” Select accounts with duplicate UIDs. like, two accounts sharing one ID? messy. this finds them. πŸ’€
  • -g groups β€” Select accounts that are members of the specified groups. If multiple group names are specified, they must be separated with commas. (comma, comma, comma β€” not spaces, bestie, commas πŸ’…)
  • -l logins β€” Select accounts matching the specified login names. If multiple names are specified, they must be separated with commas. (same deal β€” commas only πŸŽ€)
  • -m β€” Show information about secondary groups.
  • -o β€” Display the information for each account on a single line of colon-separated fields. (one line per account, colon-separated β€” very main character energy, very parseable 🌈)
  • -p β€” Select accounts with no password. πŸ™ˆ
  • -s β€” Select system accounts. These are currently defined as accounts with UIDs below 1000, plus the β€œnobody” account (UID 65534).
  • -t β€” Sort selected accounts by name rather than by UID. (name order > UID order, imo πŸ’–)
  • -u β€” Select user accounts. These are currently defined as accounts with UIDs above 1000, except the β€œnobody” account (UID 65534). (so -s and -u are the two halves of the world, and nobody lives in system-land, periodt ⭐)
  • -x β€” Display information about each account's home directory and shell. (where they live + what they run 🐚)
ok so important bit β€” if multiple selection options are specified, all accounts matching any of the selection criteria will be displayed. it's a union, not an intersection, bestie. πŸ”₯
and if no selection options are specified, all accounts will be displayed. literally all of them. the whole roster. πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

go read those when you're done here, they're the supporting cast and they understood the assignment too 🧚


πŸŽ€ HISTORY πŸŽ€

The logins utility appeared in FreeBSD 4.10. vintage! iconic! it's giving legacy but make it cute πŸ’œ


🌟 AUTHORS 🌟

The logins utility was written by Dag-Erling SmΓΈrgrav <des@FreeBSD.org> based on similar utilities in other operating systems. ty for your service, king πŸ«‘πŸ’–


and that's the whole page, bestie β€” no crumbs left. this one's from Debian, dated March 6, 2004, and it's the LOGINS(1) manual page. mwah πŸ’‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from