Hi,
I installed Matlab on my openSUSE 11.1 and when I start the program , I need to type the whole path like “/home/username/matlab/bin/matlab/” in the terminal. I know it’s possible to make this shorter but I can not find the command.
Cheers,
exopikus
Hello,
I’m not sure I understand the question. If what you want is to type just one word in the terminal so that it starts an application, you’re probably looking for an alias.
Type in a terminal
alias aliasname = 'whatever_you_need'
Whatever_you_need can be for example the path to the application, so just typing aliasname into a terminal will be the same as the whole thing, saving you time.
You’ll notice that if you restart your computer, the alias will not work anymore. You would have to write it again (and save) in this text file:
/home/user/.bashrc
Now every time you log in the alias will be available for use.
Set the PATH as follows:
export PATH=$HOME/mathlab/bin:$PATH
Once this is done, you can run:
mathlab
You may add the PATH settings in the .profile file.
OR you can do something like:
ln -l $HOME/mathlab/bin/mathlab $HOME/bin/mathlab