The Linux passwd command is a tool used to change and manage a Linux user's password. When executing the Linux passwd command, you will be prompted for entering the password twice.
||Specifies the repository to which an operation is applied.
||Show password attributes for all entries.
||Deletes password for name.
||Locks password entry for name.
||Change the login shell.
||Force the user to change password at the next login by expiring the password for name.
||Change the gecos (finger) information.
||Change the home directory.
||Set minimum field for name. The min field contains the minimum number of days between password changes for name. If min is greater than max, the user may not change the password. Always use this option with the -x option, unless max is set to -1 (aging turned off). In that case, min need not be set.
||Displays information including your username and if you do/don't have a password
||Set warn field for name. The warn field contains the number of days before the password expires and the user is warned. This option is not valid if password aging is disabled.
||Set maximum field for name. The max field contains the number of days that the password is valid for name. The aging for name will be turned off immediately if max is set to -1. If it is set to 0, then the user is forced to change the password at the next login session and aging is turned off.
||Login ID of user
A common Example of using passwd commad is shown below.