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.

To help protect anyone from seeing your password, the characters are hidden when you type it.

  • See the passwd command page for further information on this command.
  • Linux help and support.