ubuntu find user home directory code example Example 1: user.home linux System.getProperty("user.home") Example 2: find home dir for user eval echo ~$USER