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
  • 174,089
  • 51
  • 332
  • 407
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
  • 105,327
  • 107
  • 262
  • 331