Search notes:

Shell command: id

Prints the user id (gid) and group id (gid) of the user that is running the command. Additionally, it also prints all groups that the user belongs to.

Show names and ids

The following scriptlet shows the executing user's name and id and group's name and id.
echo "Name    : $(id -u -n)"
echo "User id : $(id -u   )"
echo "Group   : $(id -g -n)"
echo "Group id: $(id -g   )"
Github repository shell-commands, path: /id/show-names-and-ids

See also

Shell commands

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200478, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/id(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78