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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay