list des group linux

C++
cat /etc/passwd | awk -F: '{print $ 1}'cat /etc/group | awk -F: '{print $ 1}'
Source

Also in C++: