Skip to main content
Mention `ps`
Source Link
AlexP
  • 10.8k
  • 36
  • 44

The list of groups is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000

The primary group is given under Gid:

$ grep '^Gid' /proc/$$/status
Gid:    1000    1000    1000    1000

ps is also capable of showing the groups of a process, as the other answers indicate.

The list of groups is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000

The list of groups is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000

The primary group is given under Gid:

$ grep '^Gid' /proc/$$/status
Gid:    1000    1000    1000    1000

ps is also capable of showing the groups of a process, as the other answers indicate.

Grammar
Source Link
AlexP
  • 10.8k
  • 36
  • 44

The list of groupgroups is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000

The list of group is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000

The list of groups is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000
Source Link
AlexP
  • 10.8k
  • 36
  • 44

The list of group is given under Groups in /proc/<pid>/status; for example,

$ grep '^Groups' /proc/$$/status
Groups: 4 24 27 30 46 110 115 116 1000