Gecos field
The gecos field, or GECOS field, is a component of each user record in the /etc/passwd file on Unix and Unix-like operating systems. It is the fifth of the seven colon-separated fields in each line of the file.
Originally derived from the General Electric Comprehensive Operating System, this field is commonly used to store general information about the user, such as their full name, office number, phone number, or other contact details. While traditionally limited in length and format, modern systems often use it more flexibly, and some fields within GECOS may be left blank or omitted.
Format
The typical format for the GECOS field is a comma-delimited list with this order:- User's full name
- Building and room number or contact person
- Office telephone number
- Home telephone number
- Any other contact information
Here is an example of GECOS field within an /etc/passwd file in Linux: