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