check sudo users ubuntu code example Example: list sudo users ubuntu grep -Po '^sudo.+:\K.*$' /etc/group