DEV Community

Cover image for How to change the Ubuntu password from the terminal
Jose Muñoz
Jose Muñoz

Posted on

How to change the Ubuntu password from the terminal

Type the command:

sudo passwd user

Replace “user” with the name of the user whose password you want to change.

It will ask for the current password; enter it, and then set the new password.

Easy peasy !

Top comments (2)

Collapse
 
usman_abdulkadir_cf9b345f profile image
Usman Abdulkadir

How can I create a server on it?

Collapse
 
joselatino profile image
Jose Muñoz

I'm just starting to study Linux, I still don't know how to do it hehe