Determine Linux User and Group ID Leave a reply This is simply a quick reference for printing out an Ubuntu/Debian systems UID and GID. The sudo cat /etc/passwd command will allow you to see the UID and GID amongst other items relevant to the account. sudo cat /etc/passwd