How to change your password via Command Line in Linux

H

How Can We Help?

How to change your password via Command Line in Linux

  1. Type in the following command: passwd and hit enter!
  2. Now you will need to enter your current password.

    Changing password for YOURNAME.
    (current) UNIX password:

    Type in your password and hit enter

  3. Now enter your new password:

    Enter new UNIX password:

  4. Retype your new password:

    Retype new UNIX password:

That’s all! Now you should be able to use your new password

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me