I'm using a system that has various java versions installed and uses the "alternatives" command to switch between them. I know that I can change the Java version using this command:
alternatives --config java
Where 'java' is the name for that list of alternatives. I'm interested in finding the list of names for all alternatives currently installed. For example, I know that 'alternatives' also manages a link to the jdk directory, but I can't figure out the name to give to --config so that I can choose an alternative.
How do I get a list of names of alternatives on a linux system?