A monitoring and management command line utility, nvidia-smi, is included with the NVIDIA Linux graphics driver. After installing the driver, you can run this utility by running:
in a terminal window.
Detailed help information is available via the --help command line option and via the nvidia-smi man page.
To include nvidia-smi information in other applications see Chapter 27, The NVIDIA Management Library