Ubuntu – How To Start A Program With Its Name

filesysteminstalled-programs

I've installed Matlab on my Ubuntu 18.04. Every time I want to open it I need to call it.

/usr/local/MATLAB/R2017a/bin/matlab

I think it is too long and waste of a little time. There has to be an easier way to open it. How can I open it simply by writing its name or is there any easier way?

Best Answer

Add this to your ~/.bashrc file

export PATH=/usr/local/MATLAB/R2017a/bin:$PATH