How to Change Password in Ubuntu 22.04 using Terminal

How to Change Password in Ubuntu 22.04 using Terminal

Change password in linux ubuntu 22.04 using terminal; Through this tutorial, we will learn how to change or update password in linux ubuntu using command line or terminal.

How to Change Password in Ubuntu 22.04 using Terminal

Use the following 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

Open the terminal application by pressing Ctrl+Alt+T

Step 2 – Change Password with Use Name

Execute the following command on command line to change a password for user named tutsmake in Ubuntu:

sudo passwd tutsmake

Step 3 – Change Password of Root User

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

sudo passwd root

Step 4 – Change Password For Ubuntu

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

passwd

Conclusion

Through this tutorial, we have learned how to change or update passwords in Linux ubuntu using command line or terminal.

Recommended Linux Ubuntu Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published.