add user and directory linux code example Example 1: add user linux sudo useradd username Example 2: add user linux adduser [OPTIONS] USERNAME