Which command is used to change your password?
-
pwd
-
Passwd
-
password
-
user
Reveal answer
Fill a bubble to check yourself
B
Correct answer
Explanation
The passwd command is used to change user passwords in Unix/Linux systems. pwd means 'print working directory' and shows the current path, not password change. These are commonly confused but serve very different purposes.
AI explanation
'passwd' is the correct Unix/Linux command to change a user's login password; running it prompts for the current password (unless run as root) and then the new password, updating the /etc/shadow entry. 'pwd' is unrelated — it prints the current working directory. 'password' and 'user' are not standard shell commands at all. This is fundamental Unix system administration knowledge.