~ means $HOME. For example, I often run cd ~/programs on my laptop.
~
$HOME
cd ~/programs
But I just saw a usage of ~ without a following backslash, e.g. ~tim/public/ on a server. Does that mean different than when ~ is followed by a backslash?
~tim/public/
~ is always your own home.
~tim is the home of user tim
~tim
tim