How to change password for current user?

To change the password for the current user in a Linux system, you can use the passwd command without any additional arguments. Here’s how to do it:

  1. Open the terminal.

  2. Run the following command:

    passwd
  3. You will be prompted to enter your current password, followed by the new password twice for confirmation.

Example:

$ passwd
Changing password for user labex.
Current password:
New password:
Retype new password:
passwd: password updated successfully

After completing these steps, your password will be changed. If you have any more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!