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