I have to versions of a software (Tecplot). When I write "tec360" in the terminal it brings me the old version. How can I change the program call directory so that it will bring me the new version?
2 Answers
If you want to keep both versions and start the version which is installed in your home directory when you type tec360
, then add the full path of tec360
to your PATH. For example, if the path of tec360
is ~/tp/bin
, then add:
export PATH=$HOME/tp/bin:$PATH
See also:
-
-
1@Shibli I said for example. But the path of
tec360
(I found out meanwhile) is~/tp/bin
, so useexport PATH=$HOME/tp/bin:$PATH
Oct 11, 2013 at 3:45
Move the new version you have installed to your /opt
directory and replace the old one with the new one. Then have a system restart.
something like
sudo mv ~/tecplot /opt/
If you are not root , then do as follows in your terminal
gedit .bashrc
write a line at the end of the opened text file as
alias tec360="~/tp/bin/tec360"
Then save and close the text file.
Then in the terminal write as
source ~/.bashrc
now try again by calling your program.
-
-
-
-
In that file I saw the path of the old version. I just replaced it with the new version and it opened new version closing and opening terminal. So what is the difference between this way and that alias thing?– ShibliOct 11, 2013 at 3:51
-
1. previously your program was called with the old path and now you have changed the path to new program path where you have the new one installed. 2. alias will call the long executables with custom names set by user. linfo.org/alias.html– Raja GOct 11, 2013 at 4:00