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
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.