Difference between symlink and alias

1.8k Views Asked by At

I was trying to set up opening sublime text editor from terminal on Mac OS.

When I was searching for that I found out one way to do that: create soft link (symlink) and change the path in .profile by ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime but since PATH did not change in .profile I just added alias sublime=' open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'

Could you please tell me what is the difference between these ways?Which way is better?How to change PATH from terminal not opening .profile?

0

There are 0 best solutions below