change password user linux terminal code example Example 1: change password linux passwd userNameHere Example 2: change user password centos 7 command line sudo passwd userlogin