Linux · Users & Groups interview questions

21 real Linux · Users & Groups questions from the System Administration bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What does useradd -m alice do?

Junior
  1. A.set or change a user's password
  2. B.create a user 'alice' with a home directory
  3. C.add a user to a supplementary group (e.g. wheel)
  4. D.show a user's UID, GID and group memberships
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.useradd -m alice — add a user to a group via gpasswd
  2. B.useradd -m alice — set or change a user's password
  3. C.useradd -m alice — show a user's UID, GID and group memberships
  4. D.useradd -m alice — create a user 'alice' with a home directory
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.passwd alice — set or change a user's password
  2. B.passwd alice — delete a user and remove their home directory
  3. C.passwd alice — create a user 'alice' with a home directory
  4. D.passwd alice — add a user to a group via gpasswd
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.id alice — add a user to a group via gpasswd
  2. B.id alice — create a user 'alice' with a home directory
  3. C.id alice — set or change a user's password
  4. D.id alice — show a user's UID, GID and group memberships
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.whoami — add a user to a supplementary group (e.g. wheel)
  2. B.whoami — print the current effective username
  3. C.whoami — add a user to a group via gpasswd
  4. D.whoami — create a user 'alice' with a home directory
Reveal the answer + AI explanation — free account

13. What does usermod -aG wheel alice do?

Mid
  1. A.create a user 'alice' with a home directory
  2. B.add a user to a supplementary group (e.g. wheel)
  3. C.add a user to a group via gpasswd
  4. D.show a user's UID, GID and group memberships
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.usermod -aG wheel alice — print the current effective username
  2. B.usermod -aG wheel alice — add a user to a supplementary group (e.g. wheel)
  3. C.usermod -aG wheel alice — show a user's UID, GID and group memberships
  4. D.usermod -aG wheel alice — set or change a user's password
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.userdel -r alice — add a user to a group via gpasswd
  2. B.userdel -r alice — create a user 'alice' with a home directory
  3. C.userdel -r alice — show a user's UID, GID and group memberships
  4. D.userdel -r alice — delete a user and remove their home directory
Reveal the answer + AI explanation — free account

19. What does gpasswd -a alice docker do?

Mid
  1. A.add a user to a supplementary group (e.g. wheel)
  2. B.show a user's UID, GID and group memberships
  3. C.print the current effective username
  4. D.add a user to a group via gpasswd
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.gpasswd -a alice docker — set or change a user's password
  2. B.gpasswd -a alice docker — create a user 'alice' with a home directory
  3. C.gpasswd -a alice docker — add a user to a group via gpasswd
  4. D.gpasswd -a alice docker — print the current effective username
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Linux · Users & Groups free