How to change the password in Linux
Updated: 11/13/2018 by Computer Hope
From the command line, use the passwd command. After typing passwd, you'll be asked for the new password you want to use and then be asked to re-verify. Once you've been returned to the command line, your password is successfully changed, as shown below.
passwd
Changing password for user root.
New Unix password:
ReType new Unix password:
passwd: all authentication tokens updated successfully.
Note
To help protect anyone from seeing your password, the characters are hidden when you type it.