How To Change Password in Linux From Command Line?
Those who loves to use Linux system also loves to work on command line. Today, I came up with one new tips for Linux beginners . To change password from terminal is the easiest way than going through the GUI environment. Here the illustration of “passwd” command.
Step 1:
saggi@saggi-A6200:~$ sudo passwd
[sudo] password for saggi:
(Give root privilage to passwd command.)
Step 2:
saggi@saggi-A6200:~$ sudo passwd
[sudo] password for saggi:
Enter new UNIX password:
(Enter new password.)
Step 3:
saggi@saggi-A6200:~$ sudo passwd
[sudo] password for saggi:
Enter new UNIX password:
Retype new UNIX password:
(Retype password)
saggi@saggi-A6200:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
(Congrats you have successfully updated your password.)