how to change password of current user in linux using terminal code example Example 1: linux change user password passwd $user Example 2: add password to user ubuntu passwd {username}