How to change the video driver using command line?


How to change the video driver using command line?
Using ubuntu 16.04, the way I see my content is :sudo ubuntu-drivers devices
the output would be something like that:
sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model : GF106GLM [Quadro 2000M]
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-304-updates - distro non-free
driver : nvidia-304 - distro non-free
driver : nvidia-331 - distro non-free recommended
driver : nvidia-331-updates - distro non-free
So far so good and I'm referring to the second answer here https://askubuntu.com/questions/335285/how-to-change-proprietary-video-driver-using-the-command-line however the next step I want is just changing the driver not installing it which whoever answered that question got that part wrong.
How can I do it?
1 Answer
1
Use:
sudo ubuntu-drivers autoinstall
Welcome to answering on Stack Overflow. The quality of this answer can be improved by adding an explanation: How to Answer
– Elletlar
7 mins ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Wrong site. You're looking for Ask Ubuntu instead. This site is for programming related questions, not general computer or OS support. More info is available in the help center.
– Ken White
5 mins ago