Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I don't remember where I have setup this Sublime text 2 command line symbolic link and now I just upgraded to Sublime Text 3 and I want to replace that symbolic link instead, but I can't find where I have point that.

How can I find an existing symbolic link? I named that sub

In sublime text 3 this is how you do it

ln -s "/Applications/Sublime" ~/bin/subl
share|improve this question
Did you call "which sub"? – sencer Aug 7 '13 at 4:11

2 Answers 2

up vote 1 down vote accepted
ls -l $(which subl)

That will find the executable in your PATH and if it's a symlink what it is pointing to.

A more direct approach

readlink -e $(which subl)
share|improve this answer
That is exactly what I'm looking for! – Ali Aug 7 '13 at 12:31

First, type

rm ~/bin/subl

to remove the old symlink. Then, enter

ln -s "/Applications/Sublime" ~/bin/subl

and the next time you run subl from the command line, Sublime Text 3 should start up.

share|improve this answer
I don't have anything inside ~/bin at all and that folder isn't even exist. – Ali Aug 7 '13 at 3:57
Also my old symbolic link named sub – Ali Aug 7 '13 at 3:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.