SyntaxFix
Write A Post
Hire A Developer
Questions
To list all local groups which have users assigned to them, use this command:
cut -d: -f1 /etc/group | sort
For more info- > Unix groups, Cut command, sort command