update-alternatives
linux
Convenientily maintain symbolic links to determine default commands.
More info →Examples (5)
Add a symbolic link
sudo update-alternatives --install path/to/symlink command_name path/to/command_binary priorityConfigure a symbolic link for `java`
sudo update-alternatives --config javaRemove a symbolic link
sudo update-alternatives --remove java /opt/java/jdk1.8.0_102/bin/javaDisplay information about a specified command
update-alternatives --display javaDisplay all commands and their current selection
update-alternatives --get-selectionsmade by @shridhargupta | data from tldr-pages