create home directory for user linux code example
Example 1: linux create user with homedir
useradd -m $username
Example 2: how to create a username along with home directory in linux
useradd -m USERNAME
useradd -m $username
useradd -m USERNAME