update-alternatives --list NAME
update-alternatives --display NAME
update-alternatives --config mta
update-alternatives --all
If you don't want to cahnge, beat the only Enter key.
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 10
update-alternatives --remove ruby /usr/bin/ruby1.8