The following variables can be used to refer to various parts of the user request:
| Variable | Expansion |
|---|---|
| $user | User name |
| $group | Name of the user’s principal group |
| $uid | UID |
| $gid | GID |
| $home | User’s home directory |
| $gecos | User’s GECOS field |
| $program | Executable program name |
| $command | Entire command line |
| $# | Number of arguments in ‘$command’ |
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.