⏱ 11 min read  ·  ✅ Updated Dec 2026

As an Amazon Associate we earn from qualifying purchases.

Quick answer

The fastest way to monitor GPU usage from the terminal is to run nvidia-smi, the command-line tool that ships with the NVIDIA driver on Linux and Windows. One bare command prints a snapshot with utilization, memory use, temperature, power draw, and the processes holding memory. Add a loop flag and the table refreshes every second while a game, render, or training job runs. When a snapshot is not enough, three companions cover the rest: nvtop gives Linux users a live htop-style dashboard with per-process detail, gpustat prints a compact one-line status that fits in scripts and login messages, and PowerShell Get-Counter reads the native Windows GPU engine counters when nvidia-smi is not on the command path. This guide walks through each tool in workflow order, shows how to log a session to a CSV file, and explains how to read the numbers without misreading them.

A terminal is the most direct place to watch a graphics card. It works over SSH on a headless server, it works on a desktop with no window to spare, and it keeps a written record when a GUI overlay cannot. Gamers check whether a stutter lines up with a memory spike, developers watch a training job fill VRAM, and server owners confirm a card is actually busy before they blame the hardware. The terminal answers all of those questions with a few short commands and no extra window to manage.

This guide covers the terminal workflow on Linux and Windows: the built-in nvidia-smi snapshot and loop, the nvtop live dashboard, the gpustat one-line check, PowerShell GPU counters, and a CSV logging recipe you can reuse. It stays in workflow order, so each command appears where you would actually use it. It does not repeat a full nvidia-smi flag catalogue, and it skips GUI overlays entirely, so if you want a windowed monitor you should look elsewhere.

How to Choose

Begin With the Tool Your Driver Already Provides

nvidia-smi is the default first move because it arrives with the NVIDIA driver and needs no download. On Linux it usually sits at /usr/bin/nvidia-smi, so typing the bare command in any terminal prints a snapshot. On Windows the same command works in Windows Terminal, PowerShell, or Command Prompt once the driver is installed, and the NVSMI folder under Program Files holds the executable when the command path does not find it. The snapshot shows utilization, memory, temperature, power, and running processes in one view, which is enough to answer most quick questions. Reach for anything else only when this snapshot leaves a question unanswered.

Pick a Live Dashboard When You Watch While You Work

When you need to stare at the numbers while a job runs, a scrolling table gets tiring, and that is where nvtop earns its place. It is an htop-style monitor for Linux that shows utilization, memory, temperature, power, and the processes using each card in a single screen that updates in place. You can sort by memory, spot the process hogging VRAM, and watch several cards at once without juggling windows. Install it from your distribution package manager, for example with sudo apt install nvtop on Ubuntu 22.04 and newer, then launch it by typing nvtop. Press F2 inside the program to open its setup screen and choose which columns stay visible.

Pick a One-Line Check When You Want a Fast Answer

Sometimes a full screen is more than the question needs, and gpustat answers with a single line per card. It is a small Python utility that prints the card name, temperature, utilization, memory used against total, and the processes holding memory, all in one compact row. Install it with pip install gpustat, then run gpustat for the plain view, add -cupP to show command names, users, process IDs, and power draw, or add -i 2 to refresh every two seconds. The –json flag prints the same data as structured text for scripts, and –id limits the output to chosen card indexes. Keep it in your login message or a terminal multiplexer status line for a glanceable check.

Use Windows Native Counters When nvidia-smi Is Not on the Path

On Windows, the operating system already counts GPU engine load, and PowerShell can read those counters without any NVIDIA tool. Open PowerShell and run Get-Counter with the GPU Engine set to see utilization for every engine instance, sampling once a second for a few samples. If you are unsure which counter sets exist on your machine, run Get-Counter -ListSet with a GPU wildcard first and copy the names it prints, since counter names change with the display language on non-English systems. These counters also split load by engine type, so you can tell 3D work from video decode or copy work. Use them when the driver tool is missing or when a script must rely only on Windows itself.

Step by Step

Step 1: Confirm the Driver Answers in the Terminal

Open a terminal and run nvidia-smi with no arguments. The output opens with the driver version and a row for each card, followed by a list of processes holding memory. Read the GPU-Util column for current load, the memory columns for used against total VRAM, and the temperature and power columns for heat and draw. If you have more than one card, run nvidia-smi -L to list each card with its index and UUID, so later commands can target the right one. A clean table means the driver is loaded and the tool can see the hardware. If the shell answers that the command is not found, stop here and fix the driver or the command path before trying anything else, because every later step depends on this one working.

Step 2: Run a Live Refresh Loop While a Workload Runs

A single snapshot cannot show a spike, so refresh the view while the workload runs. The simplest loop is nvidia-smi -l 1, which prints a fresh table every second until you stop it with Ctrl+C. If you prefer a screen that redraws in place instead of scrolling, run watch -n 1 nvidia-smi, which updates the same screen every second, and add -d to highlight values that changed since the last refresh. Start the loop, then launch the game, render, or training job in a second terminal window and watch utilization climb, memory fill, and clocks rise. Stop the loop when the job ends. A loop that scrolls suits logging and copy-paste, while the watch view suits eyes-on monitoring during a live session.

Step 3: Open nvtop for a Live Dashboard on Linux

When the scrolling table feels noisy, switch to nvtop for a calmer live view. Install it with sudo apt install nvtop on Ubuntu 22.04, Debian 11, or newer, or use the matching package command on Fedora, Arch, or openSUSE. Type nvtop to launch it. The screen shows each card with utilization, memory, temperature, and power, plus a process list naming what is using the card. Press F2 to open the setup screen and pick which columns to show, and use the sort keys to order processes by memory or utilization. Because nvtop reads the driver directly, it stays accurate while a job runs. Close it with the quit key shown on screen. Use nvtop when you want to watch and identify the process behind the load in one glance.

Step 4: Get a One-Line Status With gpustat

For a quick check between commands, gpustat condenses the whole snapshot into one line per card. Install it with pip install gpustat, noting that its NVIDIA backend uses the official nvidia-ml-py binding, so do not install the older pynvml package it warns against. Run gpustat to see temperature, utilization, memory used against total, and the processes on each card. Add -cupP to include command names, usernames, process IDs, and power draw, or run gpustat -i 2 to refresh every two seconds in watch mode. Use gpustat –json when a script needs the numbers, and –id 0,1 to limit the output to chosen cards. One line is easy to paste into a chat message, a log, or a login greeting, which is why server owners keep it close at hand.

Step 5: Monitor From Windows Terminal or PowerShell

On Windows, start in Windows Terminal or PowerShell and run nvidia-smi exactly as on Linux. If the shell reports that the command is not recognized, run it from its usual home with the full path under C:\Program Files\NVIDIA Corporation\NVSMI, or confirm the driver is installed before going further. The same loop flag works here, so nvidia-smi -l 1 refreshes the table every second. For a native Windows route, run Get-Counter with the GPU Engine utilization counter and a one-second sample interval for a few samples, which shows load per engine instance without any NVIDIA tool. List the available counter sets first with Get-Counter -ListSet and a GPU wildcard when a counter name does not resolve, since names change with the display language. Either route gives you live numbers in a plain terminal window.

Step 6: Log a Session to a CSV File and Read It Back

Watching live numbers is useful, but a log lets you compare sessions and catch slow drift. Build a short query that names only the fields you need, for example timestamp, utilization, memory used, and temperature, and request CSV output with no header row and bare numbers for easy parsing. Combine the query with a loop interval and a file flag, so nvidia-smi writes one line every few seconds into a file you name. Choose a fresh filename, since the file flag overwrites an existing file. Let it run for the whole session, stop it with Ctrl+C, then open the file in a spreadsheet to graph utilization and memory over time. A log also settles arguments about whether a card was busy: the file shows what happened, minute by minute, instead of relying on memory.

Which One Fits Your Situation

Gaming on a Windows Desktop

Use nvidia-smi in Windows Terminal for a fast check before and during a session, and add the loop flag when a stutter needs watching in real time. If the command is not found, run it from the NVSMI folder or fall back to PowerShell GPU counters. Keep the terminal on a second screen and glance at utilization and memory while you play.

Training or Rendering on a Linux Server

Work over SSH with nvidia-smi loops and gpustat one-liners, since both print plain text that travels well over a remote session. Start a CSV log when the job begins so you can review the whole run later, and open nvtop when you need the process list beside the numbers from the same terminal window.

A Shared Machine With Several Users

Use gpustat with the user and command flags so each line names who owns the load and how much memory each process holds. That single view settles most arguments about a busy card faster than asking around, and the JSON flag feeds the same data into a shared status page.

Chasing a Spike or a Slow Leak Over Time

Log first and look second. Run a CSV query on a steady interval for the full session, then graph utilization and memory to find when the spike started or whether memory crept upward over hours. Live views confirm the moment, but only a log shows the trend, so compare the curve with an earlier baseline when you have one.

Common Mistakes

  • Reading one snapshot at idle and concluding the card is fine. Utilization and memory only mean something under load, so always compare an idle reading with one taken while the workload runs.
  • Mixing up utilization and memory. High utilization means the processor is busy, while high memory means VRAM is full. A card can show low utilization with full memory, or full utilization with little memory used, and each points at a different cause.
  • Watching GPU 0 while the workload runs on another card. List the cards first, confirm which index the job uses, and target that index in queries and logs.
  • Logging without a timestamp and then guessing when a spike happened. Include the timestamp field in CSV queries, or use a rolling view that stamps each line, so every sample carries its time.
  • Treating a command-not-found error as a dead card. The error usually means the driver is missing or the tool is not on the command path, so check the driver install and the NVSMI folder on Windows before suspecting hardware.

Frequently Asked Questions

Do I need to install anything to monitor GPU usage in the terminal?

No. nvidia-smi ships with the NVIDIA driver on Linux and Windows, so a working driver is usually enough for snapshots, loops, and CSV logs. Install nvtop or gpustat only when you want a live dashboard or a one-line status, and use PowerShell counters when you prefer a native Windows route with no extra tool.

Why does the terminal say nvidia-smi is not recognized?

The shell cannot find the executable, which usually means the driver is not installed or the folder is not on the command path. On Windows, run it from C:\Program Files\NVIDIA Corporation\NVSMI or confirm the driver install. On Linux, check that the proprietary driver is installed and try the full path at /usr/bin/nvidia-smi.

Can I monitor GPU usage over SSH?

Yes. Terminal tools print plain text, so nvidia-smi, gpustat, and CSV logs all work over SSH exactly as they do locally. nvtop also runs over SSH, but it needs a terminal that handles its full-screen display. For long jobs, start a CSV log and read the file when the job finishes.

Does terminal monitoring work on macOS?

Not with nvidia-smi, because modern Macs use Apple Silicon and have no NVIDIA GPU for the tool to talk to. gpustat lists an experimental Apple backend for Apple Silicon machines, but its readings are limited and marked experimental. Mac owners are better served by the native Activity Monitor GPU history window than by terminal tools built for NVIDIA hardware.

Explore Our Guides & Free Tools