Updating path in linux
Updating path in linux - Online sex
Program files (executables) are kept in many different places on the Unix system.Your path tells the Unix shell where to look on the system when you request a particular program.
To find out what your path is, at the Unix shell prompt, enter: with the directory you want the shell to search.~/.bash_profile is a startup script which generally runs once.This particular file is used for commands which run when the normal user logs in.Common uses for .bash_profile are to set environment variables such as PATH, JAVA_HOME, to create aliases for shell commands, and to set the default permissions for newly created files. Alternatively, type the following command to activate the new path settings immediately: I believe this is wrong !Feel free to replace /usr/java/jdk1.5.0_07 as per your setup. 1) In my case I did all you said for .bash_profile, however, running which java still shows old java path (crappy java that comes with linux fedora 7)2) I tried the same to set /etc/profile but I believe you provided wrong sintax Could somebody provide correct sintax for seting java path in /etc/profile or whatever as long as my which java will show my newest java?Note: The earlier entries in the path take precedence over the later ones.
Possibly an important detail: before auto-mounting, after boot, if I launched python, it would launch the version pre-installed on 12.04.
If I clicked on the linux drive to mount and then typed python, it would launch Enthought.
Note: Only advanced users should attempt to edit their path.
If you feel that you need to edit your path, but feel unsure of how to safely do it, consult your system administrator.
If you are a student, faculty member, or staff member at Indiana University, you may also want to contact your class instructor or your department's computing support provider.
The PATH environment variable is a colon-delimited list of directories that your shell searches through when you enter a command.