What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-05 16:36:06
change between two python 3 version in raspberrry pi
sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.6 0 How it works sudo update-alternative --install <link> <name> <path> <priority> how to check what is the priority list ? sudo update-alterna... Add solution -
Shell/Bash 2021-09-10 18:33:05
ubuntu set sudoers to use vim
sudo update-alternatives --config editor Add solution -
Shell/Bash 2021-09-03 19:46:02
upgrade php 8 ubuntu 20.04
# php -v (default PHP version) # From PHP 8.0 to PHP 7.4: sudo a2dismod php8.0 sudo a2enmod php7.4 sudo update-alternatives --set php /usr/bin/php7.4 sudo service apache2 restart # From PHP 7.4 to PHP 8.0: sudo a2dismod php7.4 sudo a2enmod php8.0 sudo u... Add solution -
Python 2021-09-03 18:00:03
use python3.7 as default
Simple solution is edit .bashrc and put this line: alias python3=python3.7 Whenever you will write python3 it will replace it with python3.7. Or you can use command update-alternatives which is preferred i.e: sudo update-alternatives --install /usr/bin... Add solution -
Shell/Bash 2021-08-31 11:13:02
ubuntu change java version
sudo update-alternatives --config java Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5