-ln links to wrong file

Posted by user289075 on Ask Ubuntu See other posts from Ask Ubuntu or by user289075
Published on 2014-06-06T15:32:42Z Indexed on 2014/06/06 15:41 UTC
Read the original article Hit count: 122

Filed under:
|
|

I've just installed matlab and want to be able to call it from the terminal. It works fine when I explicitly call it from its directory.

I cd to

/usr/local/bin 

and type

sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab

when I then type "matlab" in the terminal, I get the error message "bash: /media/OS/MATLAB/bin/matlab: No such file or directory"

I have no idea why it's trying to call matlab from /media. I've tried deleting the file from usr/local/bin but when I create it again the same thing happens. Any help would be very much appreciated.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash