In the passwd struct:
struct passwd {
char *pw_name; /* username */
char *pw_passwd; /* user password */
uid_t pw_uid; /* user ID */
gid_t pw_gid; /* group ID */
char *pw_gecos; /* user information */
char *pw_dir; /* home directory */
char *pw_shell; /* shell program */
};
Referenced: http://man7.org/linux/man-pages/man3/getpwnam.3.html
The user information
(usually full name of the user) is found in an attribute pw_gecos
. What does gecos mean, why is this named as such, and what is the history behind the name?