how to set user in linux code example Example 1: change user linux sudo su - username Example 2: create user in linux useradd [OPTIONS] USERNAME