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 (1)

Collapse
 
usman_abdulkadir_cf9b345f profile image
Usman Abdulkadir

How can I create a server on it?