~ is a placeholder for the user's home directory, so if your user name is johndoe your ~ is /home/johndoe.

If you are getting new lines with > in the beginning you probably used backslashes \...