How to Change Password in Ubuntu 22.04 using Terminal

In this tutorial, i am going to show you how to change or update password in linux ubuntu using command prompt or terminal.

How to Change Password in Ubuntu 22.04 using Terminal

Follow the below given steps to change or update password in linux ubuntu 22.04 using terminal or command line:

  • Step 1 – Open Terminal
  • Step 2 – Change Password with Use Name
  • Step 3 – Change Password of Root User
  • Step 4 – Change Password For Ubuntu

Step 1 – Open Terminal

Start the terminal application by pressing Ctrl+Alt+T

Step 2 – Change Password with Use Name

Run the following command on command line to change a password for user named laratutorials in Ubuntu:

sudo passwd laratutorials

Step 3 – Change Password of Root User

Run the following command on command line to change a password for root in Ubuntu:

sudo passwd root

Step 4 – Change Password For Ubuntu

Run the following command on command line to change your own password for Ubuntu:

passwd

Conclusion

In this tutorial, i have shown to you how to change or update passwords in Linux ubuntu using command line or terminal.

More Tutorials

Leave a Comment