Updated on 2025-07-30 GMT+08:00

How Do I Query Kernel Information?

You can perform the following steps to query the kernel information:

  1. Log in to the ECS.
  2. Run the following command to view the kernel version.

    uname -r

  3. Run the following commands to check the kernel version when the driver is installed:

    Ubuntu: find /lib/modules -name nvidia.ko

    CentOS: find /usr/lib/modules -name nvidia.ko

  4. Run the following command to query the GCC version:

    rpm -qa | grep gcc

  5. Run the following command to check the kernel-devel version:

    rpm -qa | grep kernel-devel