How To Start A Program With Its Name
Solution 1:
Add this to your ~/.bashrc
file
export PATH=/usr/local/MATLAB/R2017a/bin:$PATH
Solution 2:
You can either add /usr/local/MATLAB/R2017a/bin/
to your PATH or create another script in a proper directory of executables in your home.
To do the second one follow the steps below.
- Create a folder named
bin
in your home directory. (Note: This assumes the directory~/bin/
is included in your PATH. If it isn't, you need to add it to your path first.) - Create a text file named
matlab
(the command you want to use) in the the aforementioned crated folder (i.e. in~/bin/
). -
Add the following lines to the
matlab
file#!/bin/bash /usr/local/MATLAB/R2017a/bin/matlab
- Save the
matlab
file and make it executable.