linux groups code example
Example 1: linux show groups
cut -d: -f1 /etc/group | sort
Example 2: list des group linux
cat /etc/passwd | awk -F: '{print $ 1}'
Example 3: list des group linux
cat /etc/group | awk -F: '{print $ 1}'
Example 4: linux user groups
groups $username