How to Change Your Password in Linux Using Terminal
Open the Terminal if using a desktop environment., Type passwd in the terminal., If you have the right permissions, it will ask you for your old password., After entering your old password, enter in the new desired password.
Step-by-Step Guide
-
Step 1: Open the Terminal if using a desktop environment.
The keyboard shortcut to do this is Ctrl+Alt+T. -
Step 2: Type passwd in the terminal.
Then press ↵ Enter. , Type it in.
The password characters will not be displayed on the screen while you type so onlookers will not be able to guess at the length of the password. , You will need to confirm it again after the first time.
Then hit ↵ Enter and you will have reset your password using the terminal. -
Step 3: If you have the right permissions
-
Step 4: it will ask you for your old password.
-
Step 5: After entering your old password
-
Step 6: enter in the new desired password.
Detailed Guide
The keyboard shortcut to do this is Ctrl+Alt+T.
Then press ↵ Enter. , Type it in.
The password characters will not be displayed on the screen while you type so onlookers will not be able to guess at the length of the password. , You will need to confirm it again after the first time.
Then hit ↵ Enter and you will have reset your password using the terminal.
About the Author
Patricia Murray
Creates helpful guides on cooking to inspire and educate readers.
Rate This Guide
How helpful was this guide? Click to rate: