create new user in linux with directory code example Example 1: linux create user sudo useradd username Example 2: add user linux adduser [OPTIONS] USERNAME