check graphics card linux code example Example: ubuntu check graphics card info lspci | grep VGA sudo lshw -C video sudo lshw -C video | grep product: