This post shows new users and students what the passwd command is used for and how to use it. If you’re a new user or student learning how to use Linux, the easiest place to start might be on Ubuntu Linux OS. Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices. However, when you’re learning to use and understand Ubuntu Linux, you’ll also want to learn the commands behind the graphics and mouse-clicking. and how to use them. This tutorial is going to show you how. When you’re ready to learn how to use the passwd commands, follow the guide below: About passwd command: The passwd command changes passwords for user accounts. Like using your mouse and keyboard to change your password for your account or another. the passwd is the way to do it on the command line. A normal user may only change the password for his/her account, while the superuser may change the password for any account. Syntax: The syntax is the rule and format of how the passwd command can be used. the syntax can options can be reordered. but a straight format must be followed.,. Below is an example syntax of how to use the passwd command. Options: The command line options are switches or flags that determined how the commands are executed or controlled. they modify the behavior of the command. they are separated by spaces and followed after the commands options. Below are some options for the passwd command: Examples: Below are some examples of how to run and use the passwd on Ubuntu Linux. If you want to change your account password, then just run the command below. The passwd without the LOGIN name will default to the user account running it prompts to change the account password. If you wish to change John’s account password, run the passwd command and specify John’s account name. in this case, it’s called john. The commands above prompt to change the password for John’s account. If you’re not logged in as a root account, you may have to use the sudo command it it. To lock John’s account, run the commands below. To check John’s account status, run the command below To immediately expire Johns’ password, run the commands below. John will be required to change his password at the next login. When you run passwd with the –help option, you’ll see the help text below: That’s it! Hope you like it and please come back soon for more Ubuntu Linux command!