how to check the groups in linux 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}'
cut -d: -f1 /etc/group | sort
cat /etc/passwd | awk -F: '{print $ 1}'