user home directory linux 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: find home dir for user
eval echo ~$USER
System.getProperty("user.home")
usermod -d /path/to/dir username
eval echo ~$USER