Multiple choice

The seventh field of /etc/password is

  1. password

  2. login

  3. shell

  4. home

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

The /etc/passwd file contains seven colon-separated fields: username, password (x), UID, GID, gecos (comment), home directory, and shell. The seventh field specifies the user's default shell (e.g., /bin/bash, /bin/sh) that executes when they log in. Note: the question writes /etc/password but the standard file is /etc/passwd.