How to change your password via Command Line in Linux
- Type in the following command: passwd and hit enter!
- Now you will need to enter your current password.
Changing password for YOURNAME.
(current) UNIX password:
Type in your password and hit enter
- Now enter your new password:
Enter new UNIX password:
- Retype your new password:
Retype new UNIX password:
That’s all! Now you should be able to use your new password