set home linux user code example
Example 1: user.home linux
System.getProperty("user.home")
Example 2: assign home directory to user linux
usermod -d /path/to/dir username
Example 3: linux create user with homedir
useradd -m $username
System.getProperty("user.home")
usermod -d /path/to/dir username
useradd -m $username