Change PATH for global command gs from /usr/bin/gs to /usr/local/bin/gs

1.8k Views Asked by At

I need to change my PATH on ubuntu server for this command: gs

Now it looks here /usr/bin/gs but I need it to look here instead /usr/local/bin/gs

1

There are 1 best solutions below

3
On BEST ANSWER

It looks like you have two different versions of gs installed. Couple of options depending on what you want to do:

Run the gs with full path

/usr/local/bin/gs

or

add /usr/local/bin/ before /usr/bin/ in PATH variable.

Something like

PATH="/usr/local/bin/:$PATH"

Note: You can put this in profile settings as well. If you do this, all scripts that you run will be effected.