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