Linux Command Cheat Sheet/Set or change password

Set a local user password.

Section: Users Groups and Sessions

Set or change password

bash
bash
sudo passwd deploy
Explanation

Also used to lock and unlock passwords on many systems.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Users Groups and Sessions
Show current user and groups
Display numeric and named identity info.
OpenIn sheetbash1 tag match
Print current username
Show the effective user name.
OpenIn sheetbash1 tag match
Run command as root
Execute a command with elevated privileges.
OpenIn sheetbash1 tag match
Print working directory
Show the current absolute path.
Create file or update timestamp
Create an empty file if it does not exist.
Print file contents
Concatenate and print files to standard output.