Multiple choice technology performance

There are few fields in /etc/passwd file.Which of the following is the proper order?

  1. uname,UID,GID,HomeDir,command,comment

  2. uname,UID,GID,comment,HomeDIr,command

  3. uname,UID,groupname,homedir,GID,command

  4. uname,homedir,command,comment,UID,GID

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The /etc/passwd file format (in Unix-like systems) has seven colon-separated fields: username, password (x for shadow), UID (User ID), GID (Group ID), GECOS/comment field, home directory, and login shell. In the options given, B matches the correct order excluding the password field: uname, UID, GID, comment (GECOS), HomeDir, command (shell).