check home directory in linux without home code example Example: user.home linux System.getProperty("user.home")