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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay