how to detect gpu ubuntu code example Example: ubuntu check graphics card info lspci | grep VGA sudo lshw -C video sudo lshw -C video | grep product: