LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   what does 20000 (numerical argument) does for alternatives (https://www.linuxquestions.org/questions/red-hat-31/what-does-20000-numerical-argument-does-for-alternatives-890171/)

malayo 07-06-2011 03:26 AM

what does 20000 (numerical argument) does for alternatives
 
looking at example command on http://www.if-not-true-then-false.co...-red-hat-rhel/, i could not find any reference regarding that last argument for below command

Code:

alternatives --install /usr/bin/javac javac /opt/jdk1.7.0/bin/javac 20000
what does it do actually?

aysheaia 07-07-2011 01:23 AM

From http://linux.die.net/man/8/alternatives, it sets a priority :
[...]
Synopsis
alternatives [options] --install link name path priority [--slave link name path]... [--initscript service]
[...]
Each alternative has a priority associated with it. When a link group is in automatic mode, the alternatives pointed to by members of the group will be those which have the highest priority.


All times are GMT -5. The time now is 01:33 AM.