get groups of user linux code example Example 1: linux user groups groups $username Example 2: list des group linux cat /etc/group | awk -F: '{print $ 1}'