The echo ~ command outputs the path to the current user's home directory. For example, if your username is user, it would typically output /home/user. If you are on a macOS system, it might output /Users/user. The exact output depends on the operating system and the username of the logged-in user.
