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