linux set up user code example Example 1: linux create user with homedir useradd -m $username Example 2: add user linux adduser [OPTIONS] USERNAME