0

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?

Shibli
  • 157
  • 1
  • 8

2 Answers2

2

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:

Radu Rădeanu
  • 169,590
1

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.

Raja G
  • 102,391
  • 106
  • 255
  • 328
  • But I am not super user. Thats why I installed it to home directory. – Shibli Oct 11 '13 at 03:26
  • what is the executable path of your new tecplo – Raja G Oct 11 '13 at 03:30
  • ~/tp/bin/tec360 – Shibli Oct 11 '13 at 03:35
  • 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? – Shibli Oct 11 '13 at 03:51
  • 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. http://www.linfo.org/alias.html
  • – Raja G Oct 11 '13 at 04:00