see gpu usage linux code example Example 1: which gpu do i have linux sudo lshw -C display Example 2: linux check gpu usage nvidia-smi -l 1