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.