viernes, 3 de octubre de 2008

Modify enviroment's variables on linux

When we install Java we must modify the enviroment's variables, For we will can achieve this we need do:

1.- open a terminal.
2.- view file environment in "/etc/ ";
$ less /etc/environment

this file contain a string with some routes, for example:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:"

#end of file-

for add new path, we must add the new route between two points and quotes, and final line add two points, for example I like add:
/home/myname/bin

the environment file will be:


PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/myname/bin:"
You need are "super user" for can modify the environment file.

No hay comentarios: