Make a sym link
ln -s [path to the file you want to link to] [name of the alias]
ln -s /private/var/mysql/mysql.sock /private/tmp/mysql.sock
creates a symbolic link (an alias) of the mysql.sock file in /var/ and places the alias in /tmp
BTW, to get the path of a file into Terminal, just drag the file icon into the Terminal window.