groups Linux Commands

What is Linux groups Command?

Explanation

groups COMMAND:

groups command is used to print the groups a user is in.

SYNTAX :


groups

OPTIONS:


--help Print help message and exit
--version Print version and exit

EXAMPLE:


  1. Prints the groups of user.
    $ groups
    Output:
    hiox apache
  2. Prints the groups of super user.
    # groups
    Output:
    root bin daemon sys adm disk wheel.

Ask Questions

Ask Question