WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Simple script to list user groups  (Read 1487 times)

Offline grisxa

  • WikiUser
  • *
  • Posts: 27
Simple script to list user groups
« on: June 25, 2010, 01:17:25 AM »
Hi!
I you don't want to install coreutils for the moment, you may list user groups with my simple script using grep, cut and sort.
Just place it into /usr/local/bin and make executable.

Example:

$ groups tc
staff uucp

$ groups none
groups: none: No such user