linux create home for user code example Example 1: user.home linux System.getProperty("user.home") Example 2: linux create user with homedir useradd -m $username