the passwd command is used to change the password of the current login account(this command expects you to respond three times.first,it prompts for the old password,then prompts for the new password "enter the new password" and third,passwd command will ask you to re-enter new password).
$passwd
$passwd