how to change password in linux

Shell
# sudo passwd <username>
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Source

Also in Shell: