Get Full Resource Usage with /usr/bin/time -v

The GNU time binary's -v flag prints wall-clock time, max RSS memory, page faults, and context switches for any command.

LinuxprofilingtimecliLow risk
Run `/usr/bin/time -v <command>` to get detailed resource usage including Maximum resident set size and wall-clock Elapsed time.

01Command

Command
$ /usr/bin/time -v ./heavy-job

02What it does

The shell keyword `time` only shows real/user/sys seconds; GNU time is a separate binary (often not installed, hence `apt install time`) whose -v flag reports a dozen more metrics. The most useful are Maximum resident set size (peak memory in KB), Elapsed (wall time), and minor/major page faults. Always invoke it with the full path, or the shell keyword will silently ignore -v and print an error.

03Risk

RiskLow risk
RequirementsGNU time package (on Debian/Ubuntu: apt install time); the shell keyword 'time' does NOT support -v — call the binary by full path.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: System & Settings