lspci | grep VGA View integrated graphics card
lspci | grep NVIDIA View Nvidia graphics card
lshw -numeric -C display View detailed information about the graphics card
lsmod | grep nouveau View nouveau driver, no output means it is not running
sudo prime-select nvidia Switch to Nvidia graphics card
sudo prime-select intel Switch to Intel graphics card
sudo prime-select query View the currently used graphics card
ubuntu-drivers devices Check all Ubuntu-recommended drivers for your current graphics card
sudo ubuntu-drivers autoinstall Automatically install the recommended driver
nvidia-settings Invoke the visual settings interface to set whether to use discrete graphics or integrated graphics
nvidia-smi I used to type this command eight hundred times a day, then I learned about the watch command